Skip to content

Commit

Permalink
Integrate CDI TCK 4.0.10 in TCK test
Browse files Browse the repository at this point in the history
Signed-off-by: Arjan Tijms <arjan.tijms@omnifish.ee>
  • Loading branch information
arjantijms committed Jun 23, 2023
1 parent f4b5030 commit 9dcafc2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
8 changes: 3 additions & 5 deletions appserver/tests/tck/cdi/cdi-full/pom.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2022, 2022 Contributors to the Eclipse Foundation. All rights reserved.
Copyright (c) 2022, 2023 Contributors to the Eclipse Foundation. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -35,7 +35,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<cdi.tck-4-0.version>4.0.7</cdi.tck-4-0.version>
<cdi.tck-4-0.version>4.0.10</cdi.tck-4-0.version>

<!-- This matches the htmlunit version in TCK -->
<htmlunit.version>2.50.0</htmlunit.version>
Expand Down Expand Up @@ -268,7 +268,7 @@
<dependency>
<groupId>org.omnifaces.arquillian</groupId>
<artifactId>arquillian-glassfish-server-managed</artifactId>
<version>1.2</version>
<version>1.4</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -424,9 +424,7 @@
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>3.0.0-M7</version>
<executions>
<execution>
<id>generate-test-report</id>
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, 2022 Contributors to the Eclipse Foundation.
* Copyright (c) 2022, 2023 Contributors to the Eclipse Foundation.
* Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -35,6 +35,7 @@
public class GlassFishDeploymentExceptionTransformer implements DeploymentExceptionTransformer {

private static final String[] DEPLOYMENT_EXCEPTION_FRAGMENTS = new String[] {
"Only normal scopes can be passivating",
"org.jboss.weld.exceptions.DeploymentException",
"org.jboss.weld.exceptions.UnserializableDependencyException",
"org.jboss.weld.exceptions.InconsistentSpecializationException",
Expand Down Expand Up @@ -67,10 +68,10 @@ public Throwable transform(Throwable throwable) {
return root;
}
if (isFragmentFound(DEPLOYMENT_EXCEPTION_FRAGMENTS, root)) {
return new DeploymentException(root);
return new DeploymentException(root.getMessage());
}
if (isFragmentFound(DEFINITION_EXCEPTION_FRAGMENTS, root)) {
return new DefinitionException(root);
return new DefinitionException(root.getMessage());
}
return throwable;
}
Expand Down
14 changes: 4 additions & 10 deletions appserver/tests/tck/cdi/cdi-model/pom.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2022, 2022 Contributors to the Eclipse Foundation. All rights reserved.
Copyright (c) 2022, 2023 Contributors to the Eclipse Foundation.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -35,7 +35,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<cdi.tck-4-0.version>4.0.7</cdi.tck-4-0.version>
<cdi.tck-4-0.version>4.0.10</cdi.tck-4-0.version>

<!-- This matches the htmlunit version in TCK -->
<htmlunit.version>2.50.0</htmlunit.version>
Expand Down Expand Up @@ -80,7 +80,7 @@
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<version>1.7.0.Alpha13</version>
<version>1.7.0.Final</version>
<scope>test</scope>
</dependency>

Expand Down Expand Up @@ -141,7 +141,7 @@
<dependency>
<groupId>org.omnifaces.arquillian</groupId>
<artifactId>arquillian-glassfish-server-managed</artifactId>
<version>1.2</version>
<version>1.4</version>
</dependency>

</dependencies>
Expand All @@ -151,15 +151,13 @@
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<!-- Disable annotation processor for test sources -->
<testCompilerArgument>-proc:none</testCompilerArgument>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.2</version>
<executions>
<execution>
<goals>
Expand All @@ -178,9 +176,7 @@
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>unpack-glassfish</id>
Expand Down Expand Up @@ -220,9 +216,7 @@


<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>3.0.0-M7</version>
<executions>
<execution>
<id>generate-test-report</id>
Expand Down

0 comments on commit 9dcafc2

Please sign in to comment.