mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-21 02:42:18 +00:00
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>
43 lines
2 KiB
Diff
43 lines
2 KiB
Diff
testReadXmlWithBOMUcs4()
|
|
tags: []
|
|
uniqueId: [engine:junit-jupiter]/[class:org.apache.commons.io.input.BOMInputStreamTest]/[method:testReadXmlWithBOMUcs4()]
|
|
parent: [engine:junit-jupiter]/[class:org.apache.commons.io.input.BOMInputStreamTest]
|
|
source: MethodSource [className = 'org.apache.commons.io.input.BOMInputStreamTest', methodName = 'testReadXmlWithBOMUcs4', methodParameterTypes = '']
|
|
caught: java.nio.BufferOverflowException
|
|
at java.base/java.nio.charset.CoderResult.throwException(CoderResult.java:278)
|
|
at java.base/java.lang.String.encodeWithEncoder(String.java:917)
|
|
at java.base/java.lang.String.encode(String.java:875)
|
|
at java.base/java.lang.String.getBytes(String.java:1795)
|
|
at org.apache.commons.io.input.BOMInputStreamTest.testReadXmlWithBOMUcs4(BOMInputStreamTest.java:671)
|
|
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
|
|
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
|
|
duration: 2 ms
|
|
status: ✘ FAILED
|
|
|
|
--- a/src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java
|
|
+++ b/src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java
|
|
@@ -42,6 +42,7 @@ import org.apache.commons.io.ByteOrderMark;
|
|
import org.apache.commons.io.IOUtils;
|
|
import org.apache.commons.io.test.CustomIOException;
|
|
import org.apache.commons.lang3.SystemProperties;
|
|
+import org.junit.jupiter.api.Disabled;
|
|
import org.junit.jupiter.api.Test;
|
|
import org.w3c.dom.Document;
|
|
import org.xml.sax.InputSource;
|
|
@@ -281,6 +282,7 @@ class BOMInputStreamTest {
|
|
}
|
|
}
|
|
|
|
+ @Disabled
|
|
@Test
|
|
void testCloseHandleIOException() throws IOException {
|
|
ProxyInputStreamTest.testCloseHandleIOException(BOMInputStream.builder());
|
|
@@ -663,6 +665,7 @@ class BOMInputStreamTest {
|
|
parseXml(createUtf16BeDataStream(data, true));
|
|
}
|
|
|
|
+ @Disabled
|
|
@Test
|
|
void testReadXmlWithBOMUcs4() throws Exception {
|
|
// UCS-4 is BE or LE?
|