File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
integration-test/src/test/java/com/reajason/javaweb/integration/memshell/glassfish Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 88import net .bytebuddy .jar .asm .Opcodes ;
99import org .testcontainers .containers .GenericContainer ;
1010import org .testcontainers .containers .Network ;
11+ import org .testcontainers .containers .wait .strategy .Wait ;
1112import org .testcontainers .junit .jupiter .Container ;
1213import org .testcontainers .junit .jupiter .Testcontainers ;
1314
1415import java .util .List ;
16+ import java .util .Map ;
1517
1618import static com .reajason .javaweb .integration .ContainerTool .warJakartaFile ;
1719
@@ -25,6 +27,8 @@ public class GlassFish6ContainerTest extends AbstractContainerTest {
2527 "reajason/glassfish:6.2.6-jdk11" ,
2628 "/usr/local/glassfish6/glassfish/domains/domain1/autodeploy/app.war" )
2729 .warFile (warJakartaFile )
30+ .env (Map .of ("JAVA_OPTS" , "-XX:-UseContainerSupport" ))
31+ .waitStrategy (Wait .forLogMessage (".*JMXService.*" , 1 ))
2832 .jakarta (true )
2933 .targetJdkVersion (Opcodes .V11 )
3034 .assertLogs (false )
Original file line number Diff line number Diff line change 88import net .bytebuddy .jar .asm .Opcodes ;
99import org .testcontainers .containers .GenericContainer ;
1010import org .testcontainers .containers .Network ;
11+ import org .testcontainers .containers .wait .strategy .Wait ;
1112import org .testcontainers .junit .jupiter .Container ;
1213import org .testcontainers .junit .jupiter .Testcontainers ;
1314
1415import java .util .List ;
16+ import java .util .Map ;
1517
1618import static com .reajason .javaweb .integration .ContainerTool .warJakartaFile ;
1719
@@ -24,7 +26,9 @@ public class GlassFish7ContainerTest extends AbstractContainerTest {
2426 private static final ContainerTestConfig CONFIG = ContainerTestConfig .glassFish (
2527 "reajason/glassfish:7.0.20-jdk17" ,
2628 "/usr/local/glassfish7/glassfish/domains/domain1/autodeploy/app.war" )
29+ .env (Map .of ("JAVA_OPTS" , "-XX:-UseContainerSupport" ))
2730 .warFile (warJakartaFile )
31+ .waitStrategy (Wait .forLogMessage (".*JMXService.*" , 1 ))
2832 .jakarta (true )
2933 .targetJdkVersion (Opcodes .V17 )
3034 .supportedShellTypes (List .of (
You can’t perform that action at this time.
0 commit comments