File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/test/java/org/codehaus/plexus/util Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 24
24
* SOFTWARE.
25
25
*/
26
26
27
+ import java .io .ByteArrayInputStream ;
27
28
import java .io .File ;
28
29
import java .io .FileInputStream ;
29
30
import java .io .FileOutputStream ;
@@ -874,6 +875,7 @@ public void testCopyDirectoryStructureToSelf()
874
875
}
875
876
catch ( IOException e )
876
877
{
878
+ // expected
877
879
}
878
880
}
879
881
@@ -1135,7 +1137,7 @@ public void testDeleteLongPathOnWindows()
1135
1137
1136
1138
File f = new File ( a1 , path .toString () + "test.txt" );
1137
1139
1138
- InputStream is = new StringInputStream ( "Blabla" );
1140
+ InputStream is = new ByteArrayInputStream ( "Blabla" . getBytes ( "UTF-8" ) );
1139
1141
OutputStream os = new FileOutputStream ( f .getCanonicalFile () );
1140
1142
IOUtil .copy ( is , os );
1141
1143
IOUtil .close ( is );
You can’t perform that action at this time.
0 commit comments