summaryrefslogtreecommitdiff
path: root/dev-java/commons-text/files/commons-text-1.14.0-UrlStringLookupTest.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-UrlStringLookupTest.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-UrlStringLookupTest.patch')
-rw-r--r--dev-java/commons-text/files/commons-text-1.14.0-UrlStringLookupTest.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-java/commons-text/files/commons-text-1.14.0-UrlStringLookupTest.patch b/dev-java/commons-text/files/commons-text-1.14.0-UrlStringLookupTest.patch
new file mode 100644
index 000000000000..99f3b51efa4b
--- /dev/null
+++ b/dev-java/commons-text/files/commons-text-1.14.0-UrlStringLookupTest.patch
@@ -0,0 +1,56 @@
+
+testHttpScheme()
+ tags: []
+ uniqueId: [engine:junit-jupiter]/[class:org.apache.commons.text.lookup.UrlStringLookupTest]/[method:testHttpScheme()]
+ parent: [engine:junit-jupiter]/[class:org.apache.commons.text.lookup.UrlStringLookupTest]
+ source: MethodSource [className = 'org.apache.commons.text.lookup.UrlStringLookupTest', methodName = 'testHttpScheme', methodParameterTypes = '']
+ caught: java.lang.IllegalArgumentException: Error looking up URL [https://www.apache.org] with Charset [UTF-8].
+ at org.apache.commons.text.lookup.IllegalArgumentExceptions.format(IllegalArgumentExceptions.java:49)
+ at org.apache.commons.text.lookup.UrlStringLookup.lookup(UrlStringLookup.java:88)
+ at org.apache.commons.text.lookup.StringLookup.apply(StringLookup.java:66)
+ at org.apache.commons.text.lookup.UrlStringLookupTest.testHttpScheme(UrlStringLookupTest.java:63)
+ 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)
+ Caused by: java.net.UnknownHostException: www.apache.org
+ at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:569)
+ at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:284)
+ at java.base/java.net.Socket.connect(Socket.java:666)
+ at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304)
+ at java.base/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:181)
+ at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:166)
+ at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:516)
+ at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:604)
+ at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:206)
+ at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:288)
+ at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193)
+ at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:963)
+ at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:899)
+ at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179)
+ at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1377)
+ at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1302)
+ at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:223)
+ at java.base/java.net.URL.openStream(URL.java:1263)
+ at org.apache.commons.text.lookup.UrlStringLookup.lookup(UrlStringLookup.java:79)
+ ... 5 more
+ duration: 2 ms
+ status: ✘ FAILED
+
+--- a/src/test/java/org/apache/commons/text/lookup/UrlStringLookupTest.java
++++ b/src/test/java/org/apache/commons/text/lookup/UrlStringLookupTest.java
+@@ -26,6 +26,7 @@ import java.nio.file.Path;
+ import java.nio.file.Paths;
+
+ import org.junit.jupiter.api.Assertions;
++import org.junit.jupiter.api.Disabled;
+ import org.junit.jupiter.api.Test;
+
+ /**
+@@ -58,6 +59,7 @@ class UrlStringLookupTest {
+ Assertions.assertEquals(expectedString, UrlStringLookup.INSTANCE.apply("UTF-8:" + uri.toString()));
+ }
+
++ @Disabled
+ @Test
+ void testHttpScheme() {
+ Assertions.assertNotNull(UrlStringLookup.INSTANCE.apply("UTF-8:https://www.apache.org"));