Repository navigation
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?
Activity
rnorth commentedon Oct 16, 2017
I think this is a dependency version conflict - probably two versions of Guava conflicting. Please could you try checking whether Maven is overriding any deps at build time (
mvn dependency:analyze, I think)?bsideup commentedon Nov 6, 2017
@rnorth aren't we shade Guava?
iNikem commentedon Feb 20, 2018
I have similar/same issue:
Any hints, @bsideup @rnorth ?
iNikem commentedon Feb 21, 2018
Ou, disregard my comment. I myself had wrong guava dependency :)
bsideup commentedon Feb 21, 2018
@iNikem Actually, we should shade Guava in @rnorth's ducttape library to avoid that in future :)
iNikem commentedon Feb 21, 2018
But here the problem lies not in your code, but in Selenium's, not? It calls guava code and I had too old version of that.
stale commentedon Oct 28, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this.
stale commentedon Nov 11, 2018
This issue has been automatically closed due to inactivity. We apologise if this is still an active problem for you, and would ask you to re-open the issue if this is the case.
Bump influxdb-java from 2.10 to 2.14 in /modules/influxdb (#1070)