GeezerVison is showing github.com — Upgrade Thorntail with JDK 11 support · javaee-samples/javaee7-samples@127aaba
File treeExpand file treeCollapse file tree Open diff view settings test/java/org/javaee7/ejb/timer
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +10Lines changed: 10 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +<?xml version="1.0"?> | | 2 | +<jboss-deployment-structure> | | 3 | + <deployment> | | 4 | + <dependencies> | | 5 | + <!-- com.jayway.awaitility uses sun.reflect internally, module needed in JDK 11 --> | | 6 | + <module name="jdk.unsupported"/> | | 7 | + </dependencies> | | 8 | + </deployment> | | 9 | +</jboss-deployment-structure> | | 10 | + |
Collapse file Copy file name to clipboardExpand all lines: ejb/timer/src/test/java/org/javaee7/ejb/timer/AutomaticTimerBeanTest.java +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | import static org.hamcrest.Matchers.is; | 8 | 8 | import static org.javaee7.ejb.timer.WithinWindowMatcher.withinWindow; | 9 | 9 |
| | 10 | +import java.io.File; | | 11 | + | 10 | 12 | import javax.inject.Inject; | 11 | 13 |
| 12 | 14 | import org.jboss.arquillian.container.test.api.Deployment; | @@ -35,7 +37,8 @@ public static WebArchive deploy() { | 35 | 37 | .addAsLibraries(Maven.resolver().loadPomFromFile("pom.xml") | 36 | 38 | .resolve("com.jayway.awaitility:awaitility") | 37 | 39 | .withTransitivity().asFile()) | 38 | | - .addClasses(WithinWindowMatcher.class, Ping.class, PingsListener.class, AutomaticTimerBean.class); | | 40 | + .addClasses(WithinWindowMatcher.class, Ping.class, PingsListener.class, AutomaticTimerBean.class) | | 41 | + .addAsWebInfResource(new File("src/main/webapp/WEB-INF/jboss-deployment-structure.xml")); | 39 | 42 | } | 40 | 43 |
| 41 | 44 | @Test | |
Collapse file Copy file name to clipboardExpand all lines: ejb/timer/src/test/java/org/javaee7/ejb/timer/MultipleScheduleTimerBeanTest.java +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 9 | 9 | import static org.javaee7.ejb.timer.WithinWindowMatcher.withinWindow; | 10 | 10 | import static org.jboss.shrinkwrap.api.ShrinkWrap.create; | 11 | 11 |
| | 12 | +import java.io.File; | | 13 | + | 12 | 14 | import javax.inject.Inject; | 13 | 15 |
| 14 | 16 | import org.jboss.arquillian.container.test.api.Deployment; | @@ -36,7 +38,8 @@ public static WebArchive deploy() { | 36 | 38 | .addAsLibraries(Maven.resolver().loadPomFromFile("pom.xml") | 37 | 39 | .resolve("com.jayway.awaitility:awaitility") | 38 | 40 | .withTransitivity().asFile()) | 39 | | - .addClasses(WithinWindowMatcher.class, Ping.class, PingsListener.class, MultipleScheduleTimerBean.class); | | 41 | + .addClasses(WithinWindowMatcher.class, Ping.class, PingsListener.class, MultipleScheduleTimerBean.class) | | 42 | + .addAsWebInfResource(new File("src/main/webapp/WEB-INF/jboss-deployment-structure.xml")); | 40 | 43 | } | 41 | 44 |
| 42 | 45 | @Test | |
Collapse file Copy file name to clipboardExpand all lines: ejb/timer/src/test/java/org/javaee7/ejb/timer/ProgrammaticTimerBeanTest.java +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 8 | 8 | import static org.javaee7.ejb.timer.WithinWindowMatcher.withinWindow; | 9 | 9 | import static org.jboss.shrinkwrap.api.ShrinkWrap.create; | 10 | 10 |
| | 11 | +import java.io.File; | | 12 | + | 11 | 13 | import javax.inject.Inject; | 12 | 14 |
| 13 | 15 | import org.jboss.arquillian.container.test.api.Deployment; | @@ -40,7 +42,9 @@ public static WebArchive deploy() { | 40 | 42 | WithinWindowMatcher.class, | 41 | 43 | Ping.class, | 42 | 44 | PingsListener.class, | 43 | | - ProgrammaticTimerBean.class); | | 45 | + ProgrammaticTimerBean.class) | | 46 | + .addAsWebInfResource(new File("src/main/webapp/WEB-INF/jboss-deployment-structure.xml")); | | 47 | + | 44 | 48 | } | 45 | 49 |
| 46 | 50 | @Test | |
Collapse file Copy file name to clipboardExpand all lines: ejb/timer/src/test/java/org/javaee7/ejb/timer/SchedulesTimerBeanTest.java +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 9 | 9 | import static org.javaee7.ejb.timer.WithinWindowMatcher.withinWindow; | 10 | 10 | import static org.jboss.shrinkwrap.api.ShrinkWrap.create; | 11 | 11 |
| | 12 | +import java.io.File; | | 13 | + | 12 | 14 | import javax.inject.Inject; | 13 | 15 |
| 14 | 16 | import org.jboss.arquillian.container.test.api.Deployment; | @@ -36,7 +38,8 @@ public static WebArchive deploy() { | 36 | 38 | .addAsLibraries(Maven.resolver().loadPomFromFile("pom.xml") | 37 | 39 | .resolve("com.jayway.awaitility:awaitility") | 38 | 40 | .withTransitivity().asFile()) | 39 | | - .addClasses(WithinWindowMatcher.class, Ping.class, PingsListener.class, SchedulesTimerBean.class); | | 41 | + .addClasses(WithinWindowMatcher.class, Ping.class, PingsListener.class, SchedulesTimerBean.class) | | 42 | + .addAsWebInfResource(new File("src/main/webapp/WEB-INF/jboss-deployment-structure.xml")); | 40 | 43 | } | 41 | 44 |
| 42 | 45 | @Test | |
Collapse file Copy file name to clipboardExpand all lines: pom.xml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 39 | 39 | <glassfish.version>4.1.1</glassfish.version> | 40 | 40 | <liberty.version>16.0.0.4</liberty.version> | 41 | 41 | <wildfly.version>13.0.0.Final</wildfly.version> | 42 | | - <wildfly.swarm.version>2.0.0.Final</wildfly.swarm.version> | | 42 | + <wildfly.swarm.version>2.4.0.Final</wildfly.swarm.version> | 43 | 43 | <tomee.version>7.0.2</tomee.version> | 44 | 44 | <tomcat.version>9.0.4</tomcat.version> | 45 | 45 | </properties> | |
|