Skip to content

Commit 2df53eb

Browse files
committed
Changed testdata to avoid unmappable characters
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1687830 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6c87078 commit 2df53eb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/org/apache/commons/io/output/FileWriterWithEncodingTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ public void setUp() {
6262
file1 = new File(getTestDirectory(), "testfile1.txt");
6363
file2 = new File(getTestDirectory(), "testfile2.txt");
6464
final char[] arr = new char[1024];
65+
final char[] chars = "ABCEDEFGHIJKLMNOPQabcdefgihklmnopq".toCharArray();
6566
for (int i = 0; i < arr.length; i++) {
66-
arr[i] = (char) i;
67+
arr[i] = chars[i % chars.length];
6768
}
6869
textContent = new String(arr);
6970
}

0 commit comments

Comments
 (0)