summaryrefslogtreecommitdiff
path: root/dev-java/commons-text/files/commons-text-1.14.0-UrlEncoderStringLookupTest.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/commons-text/files/commons-text-1.14.0-UrlEncoderStringLookupTest.patch')
-rw-r--r--dev-java/commons-text/files/commons-text-1.14.0-UrlEncoderStringLookupTest.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-java/commons-text/files/commons-text-1.14.0-UrlEncoderStringLookupTest.patch b/dev-java/commons-text/files/commons-text-1.14.0-UrlEncoderStringLookupTest.patch
new file mode 100644
index 000000000000..bea9a0404bdf
--- /dev/null
+++ b/dev-java/commons-text/files/commons-text-1.14.0-UrlEncoderStringLookupTest.patch
@@ -0,0 +1,35 @@
+
+─ testExceptionGettingString()
+ tags: []
+ uniqueId: [engine:junit-jupiter]/[class:org.apache.commons.text.lookup.UrlEncoderStringLookupTest]/[method:testExceptionGettingString()]
+ parent: [engine:junit-jupiter]/[class:org.apache.commons.text.lookup.UrlEncoderStringLookupTest]
+ source: MethodSource [className = 'org.apache.commons.text.lookup.UrlEncoderStringLookupTest', methodName = 'testExceptionGettingString', methodParameterTypes = '']
+ caught: org.mockito.exceptions.base.MockitoException:
+ Cannot mock/spy class org.apache.commons.text.lookup.UrlEncoderStringLookup
+ Mockito cannot mock/spy because :
+ - final class
+ at org.apache.commons.text.lookup.UrlEncoderStringLookupTest.testExceptionGettingString(UrlEncoderStringLookupTest.java:44)
+ 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: 196 ms
+ status: ✘ FAILED
+
+--- a/src/test/java/org/apache/commons/text/lookup/UrlEncoderStringLookupTest.java
++++ b/src/test/java/org/apache/commons/text/lookup/UrlEncoderStringLookupTest.java
+@@ -25,6 +25,7 @@ import java.io.UnsupportedEncodingException;
+ import java.nio.charset.StandardCharsets;
+
+ import org.junit.jupiter.api.Assertions;
++import org.junit.jupiter.api.Disabled;
+ import org.junit.jupiter.api.Test;
+
+ /**
+@@ -39,6 +40,7 @@ class UrlEncoderStringLookupTest {
+ Assertions.assertEquals(DATA, UrlEncoderStringLookup.INSTANCE.apply("Hello World!"));
+ }
+
++ @Disabled
+ @Test
+ void testExceptionGettingString() throws UnsupportedEncodingException {
+ final UrlEncoderStringLookup mockLookup = spy(UrlEncoderStringLookup.class);