summaryrefslogtreecommitdiff
path: root/dev-java/commons-text/files/commons-text-1.14.0-ResourceBundleStringLookupTest.patch
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2025-07-26 17:12:45 +0200
committerSam James <sam@gentoo.org>2025-10-03 06:08:41 +0100
commitff3cc60d536457d31e672f28f5c0a6455ce6c2b0 (patch)
treeb24321ec8369cec851d7c9ba0c4011e3fb6f1327 /dev-java/commons-text/files/commons-text-1.14.0-ResourceBundleStringLookupTest.patch
parent2d8f2af34a445545092d7ae2f93f0aa2b5c5ab84 (diff)
downloadgentoo-ff3cc60d536457d31e672f28f5c0a6455ce6c2b0.tar.gz
gentoo-ff3cc60d536457d31e672f28f5c0a6455ce6c2b0.tar.bz2
gentoo-ff3cc60d536457d31e672f28f5c0a6455ce6c2b0.zip
dev-java/commons-text: new package, add 1.14.0
test-dependency of dev-java/commons-lang Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Part-of: https://github.com/gentoo/gentoo/pull/42983 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-java/commons-text/files/commons-text-1.14.0-ResourceBundleStringLookupTest.patch')
-rw-r--r--dev-java/commons-text/files/commons-text-1.14.0-ResourceBundleStringLookupTest.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-java/commons-text/files/commons-text-1.14.0-ResourceBundleStringLookupTest.patch b/dev-java/commons-text/files/commons-text-1.14.0-ResourceBundleStringLookupTest.patch
new file mode 100644
index 000000000000..8a008cda3e45
--- /dev/null
+++ b/dev-java/commons-text/files/commons-text-1.14.0-ResourceBundleStringLookupTest.patch
@@ -0,0 +1,34 @@
+─ testExceptionGettingString()
+ tags: []
+ uniqueId: [engine:junit-jupiter]/[class:org.apache.commons.text.lookup.ResourceBundleStringLookupTest]/[method:testExceptionGettingString()]
+ parent: [engine:junit-jupiter]/[class:org.apache.commons.text.lookup.ResourceBundleStringLookupTest]
+ source: MethodSource [className = 'org.apache.commons.text.lookup.ResourceBundleStringLookupTest', methodName = 'testExceptionGettingString', methodParameterTypes = '']
+ caught: org.mockito.exceptions.base.MockitoException:
+ Cannot mock/spy class org.apache.commons.text.lookup.ResourceBundleStringLookup
+ Mockito cannot mock/spy because :
+ - final class
+ at org.apache.commons.text.lookup.ResourceBundleStringLookupTest.testExceptionGettingString(ResourceBundleStringLookupTest.java:68)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:565)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
+ duration: 204 ms
+ status: ✘ FAILED
+
+--- a/src/test/java/org/apache/commons/text/lookup/ResourceBundleStringLookupTest.java
++++ b/src/test/java/org/apache/commons/text/lookup/ResourceBundleStringLookupTest.java
+@@ -25,6 +25,7 @@ import static org.mockito.Mockito.when;
+ import java.util.ResourceBundle;
+
+ import org.junit.jupiter.api.Assertions;
++import org.junit.jupiter.api.Disabled;
+ import org.junit.jupiter.api.Test;
+
+ /**
+@@ -63,6 +64,7 @@ class ResourceBundleStringLookupTest {
+ .apply(AbstractStringLookup.toLookupKey("OtherBundle", KEY)));
+ }
+
++ @Disabled
+ @Test
+ void testExceptionGettingString() {
+ final ResourceBundleStringLookup mockLookup = spy(ResourceBundleStringLookup.class);