public void outputStreamFileDoesntExists() throws IOException {
final SimpleFileSystemProvider fsProvider = new SimpleFileSystemProvider();
final Path path = GeneralPathImpl.create( fsProvider.getFileSystem( URI.create( "file:///" ) ), "/path/to/file.txt", false );
fsProvider.newOutputStream( path );
}
@Test(expected = org.uberfire.java.nio.IOException.class)
public void outputStreamOnDirectory() throws IOException {
final SimpleFileSystemProvider fsProvider = new SimpleFileSystemProvider();