This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
commit aaad426aae8bda4e7b2978829f1bd1b1219df944 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Wed Oct 4 08:48:05 2023 -0400 Tests using JUnit 5 constructs --- .../commons/io/input/CharSequenceInputStreamTest.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/test/java/org/apache/commons/io/input/CharSequenceInputStreamTest.java b/src/test/java/org/apache/commons/io/input/CharSequenceInputStreamTest.java index df627061..a8e06b81 100644 --- a/src/test/java/org/apache/commons/io/input/CharSequenceInputStreamTest.java +++ b/src/test/java/org/apache/commons/io/input/CharSequenceInputStreamTest.java @@ -159,13 +159,12 @@ public class CharSequenceInputStreamTest { // at sun.nio.cs.ext.COMPOUND_TEXT_Encoder.encodeLoop(COMPOUND_TEXT_Encoder.java:75) // at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:544) // at org.apache.commons.io.input.CharSequenceInputStream.fillBuffer(CharSequenceInputStream.java:111) - @Test - public void testBufferedRead_AvailableCharset() throws IOException { - for (final String csName : Charset.availableCharsets().keySet()) { - // prevent java.lang.UnsupportedOperationException at sun.nio.cs.ext.ISO2022_CN.newEncoder. - if (isAvailabilityTestableForCharset(csName)) { - testBufferedRead(TEST_STRING, csName); - } + @ParameterizedTest(name = "{0}") + @MethodSource(CharsetsTest.AVAIL_CHARSETS) + public void testBufferedRead_AvailableCharset(final String csName) throws IOException { + // prevent java.lang.UnsupportedOperationException at sun.nio.cs.ext.ISO2022_CN.newEncoder. + if (isAvailabilityTestableForCharset(csName)) { + testBufferedRead(TEST_STRING, csName); } }