Skip to content

Commit b80f2e0

Browse files
committed
better solution for test fix
1 parent eeed7fa commit b80f2e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/jdk/java/nio/file/Files/ReadWriteString.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ public class ReadWriteString {
6868
private static final Charset WINDOWS_1252 = Charset.forName("windows-1252");
6969
private static final Charset WINDOWS_31J = Charset.forName("windows-31j");
7070

71+
private static final Charset UTF_32 = Charset.forName("utf-32");
72+
private static final Charset UTF_32BE = Charset.forName("utf-32be");
73+
private static final Charset UTF_32LE = Charset.forName("utf-32le");
74+
7175
static byte[] data = getData();
7276

7377
static byte[] getData() {
@@ -162,6 +166,9 @@ public Object[][] getReadString() {
162166
{testFiles[1], TEXT_PERSON_CART_WHEELING, UTF_16, UTF_16},
163167
{testFiles[1], TEXT_PERSON_CART_WHEELING, UTF_16BE, UTF_16BE},
164168
{testFiles[1], TEXT_PERSON_CART_WHEELING, UTF_16LE, UTF_16LE},
169+
{testFiles[1], TEXT_PERSON_CART_WHEELING, UTF_32, UTF_32},
170+
{testFiles[1], TEXT_PERSON_CART_WHEELING, UTF_32BE, UTF_32BE},
171+
{testFiles[1], TEXT_PERSON_CART_WHEELING, UTF_32LE, UTF_32LE},
165172
{testFiles[1], TEXT_PERSON_CART_WHEELING, WINDOWS_1252, WINDOWS_1252},
166173
{testFiles[1], TEXT_PERSON_CART_WHEELING, WINDOWS_31J, WINDOWS_31J}
167174
};

0 commit comments

Comments
 (0)