#2468 Update needed dependencies for running CDI tests on Java 16+

This commit is contained in:
Filip Hrisafov 2022-01-23 21:12:30 +01:00
parent 20ff51ebb8
commit aade31f095
4 changed files with 10 additions and 9 deletions

View File

@ -5,7 +5,6 @@
*/
package org.mapstruct.itest.tests;
import org.junit.jupiter.api.condition.DisabledForJreRange;
import org.junit.jupiter.api.condition.EnabledForJreRange;
import org.junit.jupiter.api.condition.JRE;
import org.junit.jupiter.api.parallel.Execution;
@ -26,7 +25,6 @@ public class MavenIntegrationTest {
}
@ProcessorTest(baseDir = "cdiTest")
@DisabledForJreRange(min = JRE.JAVA_16)
void cdiTest() {
}

View File

@ -56,7 +56,7 @@
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-core</artifactId>
<artifactId>weld-core-impl</artifactId>
<scope>test</scope>
</dependency>
<dependency>

View File

@ -38,7 +38,9 @@ public class CdiBasedMapperTest {
.addPackage( SourceTargetMapper.class.getPackage() )
.addPackage( DateMapper.class.getPackage() )
.addAsManifestResource(
new StringAsset("<decorators><class>org.mapstruct.itest.cdi.SourceTargetMapperDecorator</class></decorators>"),
new StringAsset("<beans version=\"1.1\">" +
"<decorators><class>org.mapstruct.itest.cdi.SourceTargetMapperDecorator</class></decorators>" +
"</beans>"),
"beans.xml" );
}

View File

@ -152,7 +152,7 @@
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>1.2</version>
<version>2.0.SP1</version>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
@ -162,19 +162,20 @@
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>
<version>1.0.2.Final</version>
<version>1.6.0.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-weld-se-embedded-1.1</artifactId>
<version>1.0.0.CR7</version>
<version>1.0.0.Final</version>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-core</artifactId>
<version>2.3.2.Final</version>
<artifactId>weld-core-impl</artifactId>
<version>3.1.8.Final</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>