-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
I'm trying to execute the test containers inside an web application deployed on glassfish
My test call is
public Result run(Test test) {
this.test = test;
logger.info("Running test {}", test.getTestName());
JUnitCore runner = new JUnitCore();
Result result = runner.run(TestBrowser.class);
logger.info("{} run complete", test.getTestName());
logger.info("It was successfull test? {}", result.wasSuccessful());
return result;
}
When I run this I got the exception above
Informações: java.lang.RuntimeException: java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.toImmutableSet()Ljava/util/stream/Collector; at org.rnorth.ducttape.timeouts.Timeouts.callFuture(Timeouts.java:57) at org.rnorth.ducttape.timeouts.Timeouts.getWithTimeout(Timeouts.java:32) at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:38) at org.testcontainers.containers.BrowserWebDriverContainer.containerIsStarted(BrowserWebDriverContainer.java:166) at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:238) at org.testcontainers.containers.GenericContainer.lambda$start$0(GenericContainer.java:184) at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:76) at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:182) at org.testcontainers.containers.GenericContainer.starting(GenericContainer.java:544) at org.testcontainers.containers.FailureDetectingExternalResource$1.evaluate(FailureDetectingExternalResource.java:29) at org.junit.rules.RunRules.evaluate(RunRules.java:20)
In maven test scope it works perfectly, but this test works before on glassfish. Can anyone help me?