FAILED: test.guice.GuiceTest.ensureInjectorsAreReUsed GITHUB-2343 com.google.inject.CreationException: Unable to create injector, see the following errors: 1) [Guice/ScopeNotFound]: No scope is bound to Singleton. Used at: 1 : ParentModule.configure(ParentModule.java:12) Learn more: https://github.com/google/guice/wiki/SCOPE_NOT_FOUND 1 error ====================== Full classname legend: ====================== ParentModule: "test.guice.issue2343.modules.ParentModule" Singleton: "javax.inject.Singleton" ======================== End of classname legend: ======================== at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:589) at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:163) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110) at com.google.inject.Guice.createInjector(Guice.java:87) at com.google.inject.Guice.createInjector(Guice.java:78) at java.base/java.util.Optional.map(Optional.java:260) at test.guice.GuiceTest.ensureInjectorsAreReUsed(GuiceTest.java:73) at java.base/java.util.ArrayList.forEach(ArrayList.java:1604) ... Removed 49 stack frames FAILED: test.guice.GuiceTest.ensureMultipleInjectorsAreNotCreated GITHUB-2355 com.google.inject.CreationException: Unable to create injector, see the following errors: 1) [Guice/ScopeNotFound]: No scope is bound to Singleton. Used at: 1 : AnotherParentModule.configure(AnotherParentModule.java:23) Learn more: https://github.com/google/guice/wiki/SCOPE_NOT_FOUND 1 error ====================== Full classname legend: ====================== AnotherParentModule: "test.guice.issue2355.AnotherParentModule" Singleton: "javax.inject.Singleton" ======================== End of classname legend: ======================== at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:589) at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:163) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110) at com.google.inject.Guice.createInjector(Guice.java:87) at com.google.inject.Guice.createInjector(Guice.java:78) at java.base/java.util.Optional.map(Optional.java:260) at test.guice.GuiceTest.ensureMultipleInjectorsAreNotCreated(GuiceTest.java:83) at java.base/java.util.ArrayList.forEach(ArrayList.java:1604) ... Removed 49 stack frames FAILED: test.guice.GuiceTest.ensureRetryAnalyzersAreGuiceAware GITHUB-2570 java.lang.AssertionError: The Retry Analyzer should have been created via Guice constructor injection. at test.guice.GuiceTest.ensureRetryAnalyzersAreGuiceAware(GuiceTest.java:107) at java.base/java.util.ArrayList.forEach(ArrayList.java:1604) --- a/testng-core/src/test/java/test/guice/GuiceTest.java +++ b/testng-core/src/test/java/test/guice/GuiceTest.java @@ -65,7 +65,7 @@ public class GuiceTest extends SimpleBaseTest { assertThat(FakeInjector.getInstance()).isNotNull(); } - @Test(description = "GITHUB-2343") + @Test(enabled = false) public void ensureInjectorsAreReUsed() { XmlSuite suite = createXmlSuite("sample_suite", "sample_test", SampleA.class, SampleB.class); suite.setParentModule(ParentModule.class.getCanonicalName()); @@ -74,7 +74,7 @@ public class GuiceTest extends SimpleBaseTest { assertThat(Person.counter).isEqualTo(1); } - @Test(description = "GITHUB-2355") + @Test(enabled = false) public void ensureMultipleInjectorsAreNotCreated() { Person.counter = 0; XmlSuite suite = createXmlSuite("sample_suite", "sample_test", SampleA.class, SampleB.class); @@ -97,7 +97,7 @@ public class GuiceTest extends SimpleBaseTest { assertEquals(TestModuleTwo.counter.get(), 1, "TestModuleTwo configuration called times"); } - @Test(description = "GITHUB-2570") + @Test(enabled = false) public void ensureRetryAnalyzersAreGuiceAware() { TestNG testng = create(SampleTestClass.class); testng.run();