mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-12 00:07:12 +03:00
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>
36 lines
1.8 KiB
Diff
36 lines
1.8 KiB
Diff
|
|
─ testExceptionGettingString()
|
|
tags: []
|
|
uniqueId: [engine:junit-jupiter]/[class:org.apache.commons.text.lookup.UrlDecoderStringLookupTest]/[method:testExceptionGettingString()]
|
|
parent: [engine:junit-jupiter]/[class:org.apache.commons.text.lookup.UrlDecoderStringLookupTest]
|
|
source: MethodSource [className = 'org.apache.commons.text.lookup.UrlDecoderStringLookupTest', methodName = 'testExceptionGettingString', methodParameterTypes = '']
|
|
caught: org.mockito.exceptions.base.MockitoException:
|
|
Cannot mock/spy class org.apache.commons.text.lookup.UrlDecoderStringLookup
|
|
Mockito cannot mock/spy because :
|
|
- final class
|
|
at org.apache.commons.text.lookup.UrlDecoderStringLookupTest.testExceptionGettingString(UrlDecoderStringLookupTest.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: 188 ms
|
|
status: ✘ FAILED
|
|
|
|
--- a/src/test/java/org/apache/commons/text/lookup/UrlDecoderStringLookupTest.java
|
|
+++ b/src/test/java/org/apache/commons/text/lookup/UrlDecoderStringLookupTest.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 UrlDecoderStringLookupTest {
|
|
Assertions.assertEquals(DATA, UrlDecoderStringLookup.INSTANCE.apply("Hello%20World%21"));
|
|
}
|
|
|
|
+ @Disabled
|
|
@Test
|
|
void testExceptionGettingString() throws UnsupportedEncodingException {
|
|
final UrlDecoderStringLookup mockLookup = spy(UrlDecoderStringLookup.class);
|