@@ -1021,7 +1021,7 @@ public void testReadLines_CharSequence() throws IOException {
10211021 CharSequence csq = null ;
10221022 try {
10231023 final String [] data = {"hello" , "/u1234" , "" , "this is" , "some text" };
1024- TestUtils .createLineBasedFile (file , data );
1024+ TestUtils .createLineFileUtf8 (file , data );
10251025 csq = new String (Files .readAllBytes (file .toPath ()), StandardCharsets .UTF_8 );
10261026 final List <String > lines = IOUtils .readLines (csq );
10271027 assertEquals (Arrays .asList (data ), lines );
@@ -1036,7 +1036,7 @@ public void testReadLines_CharSequenceAsStringBuilder() throws IOException {
10361036 StringBuilder csq = null ;
10371037 try {
10381038 final String [] data = {"hello" , "/u1234" , "" , "this is" , "some text" };
1039- TestUtils .createLineBasedFile (file , data );
1039+ TestUtils .createLineFileUtf8 (file , data );
10401040 csq = new StringBuilder (new String (Files .readAllBytes (file .toPath ()), StandardCharsets .UTF_8 ));
10411041 final List <String > lines = IOUtils .readLines (csq );
10421042 assertEquals (Arrays .asList (data ), lines );
@@ -1051,7 +1051,7 @@ public void testReadLines_InputStream() throws Exception {
10511051 InputStream in = null ;
10521052 try {
10531053 final String [] data = {"hello" , "world" , "" , "this is" , "some text" };
1054- TestUtils .createLineBasedFile (file , data );
1054+ TestUtils .createLineFileUtf8 (file , data );
10551055
10561056 in = Files .newInputStream (file .toPath ());
10571057 final List <String > lines = IOUtils .readLines (in );
@@ -1069,7 +1069,7 @@ public void testReadLines_InputStream_String() throws Exception {
10691069 InputStream in = null ;
10701070 try {
10711071 final String [] data = {"hello" , "/u1234" , "" , "this is" , "some text" };
1072- TestUtils .createLineBasedFile (file , data );
1072+ TestUtils .createLineFileUtf8 (file , data );
10731073
10741074 in = Files .newInputStream (file .toPath ());
10751075 final List <String > lines = IOUtils .readLines (in , UTF_8 );
@@ -1087,7 +1087,7 @@ public void testReadLines_Reader() throws Exception {
10871087 Reader in = null ;
10881088 try {
10891089 final String [] data = {"hello" , "/u1234" , "" , "this is" , "some text" };
1090- TestUtils .createLineBasedFile (file , data );
1090+ TestUtils .createLineFileUtf8 (file , data );
10911091 in = new InputStreamReader (Files .newInputStream (file .toPath ()));
10921092 final List <String > lines = IOUtils .readLines (in );
10931093 assertEquals (Arrays .asList (data ), lines );
0 commit comments