Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
paultuckey committed Jun 9, 2023
1 parent ad80f3f commit bb6d430
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -61,14 +61,15 @@ public abstract class ContainerTestBase {
public GenericContainer<?> container = new GenericContainer<>("tomcat:10.1.9")
.withReuse(true)
.withExposedPorts(8080)
.withFileSystemBind(webappPath, "/usr/local/tomcat/webapps/webapp.war")
.waitingFor(Wait.forHttp("/webapp/test/test.jsp").forStatusCode(200));
.withFileSystemBind(webappPath, "/usr/local/tomcat/webapps/webapp.war");


public void setUp() throws Exception {
container.start();
System.out.println(container.getContainerId());
System.out.println("HOST " + container.getHost());
System.out.println("PORT " + container.getFirstMappedPort());
Thread.sleep(2000); //no work //.waitingFor(Wait.forHttp("/webapp/test/test.jsp").forStatusCode(200));
assert (container.isRunning());

String containerId = System.getProperty("test.container.id");
Expand Down

0 comments on commit bb6d430

Please sign in to comment.