gentoo-ebuilds/dev-java/testng/files/testng-7.11.0-SkipFrom-GuiceTest.patch
Volkmar W. Pogatzki bc7a362c92
dev-java/testng: add 7.11.0
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Part-of: https://github.com/gentoo/gentoo/pull/44266
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
2025-10-28 20:25:06 +01:00

99 lines
4 KiB
Diff

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();