assertEquals(1, files.size());
deleteFs.delete(file.getParent(), true);
janitor.clearPath(testPath);
System.out.println("create(Path, Progressable)");
fout = deleteFs.create(file, new Progressable(){
@Override
public void progress() {
}
});
assertNotNull(fout);
fout.close();
files = meta.list(Collections.singletonList(file.getParent()));
assertEquals(1, files.size());
deleteFs.delete(file.getParent(), true);
janitor.clearPath(testPath);
System.out.println("create(Path, boolean)");
fout = deleteFs.create(file, true);
assertNotNull(fout);
fout.close();
files = meta.list(Collections.singletonList(file.getParent()));
assertEquals(1, files.size());
deleteFs.delete(file.getParent(), true);
janitor.clearPath(testPath);
System.out.println("create(Path, short)");
fout = deleteFs.create(file, (short) 1);
assertNotNull(fout);
fout.close();
files = meta.list(Collections.singletonList(file.getParent()));
assertEquals(1, files.size());
deleteFs.delete(file.getParent(), true);
janitor.clearPath(testPath);
System.out.println("create(Path, boolean, int)");
fout = deleteFs.create(file, true, 4096);
assertNotNull(fout);
fout.close();
files = meta.list(Collections.singletonList(file.getParent()));
assertEquals(1, files.size());
deleteFs.delete(file.getParent(), true);
janitor.clearPath(testPath);
System.out.println("create(FileSystem, Path, FsPermission)");
fout = deleteFs.create(deleteFs, file, FsPermission.getDefault());
assertNotNull(fout);
fout.close();
files = meta.list(Collections.singletonList(file.getParent()));
assertEquals(1, files.size());
deleteFs.delete(file.getParent(), true);
janitor.clearPath(testPath);
System.out.println("create(FileSystem, short, Progressable)");
fout = deleteFs.create(file, (short)1, new Progressable(){
@Override
public void progress() {
}
});
assertNotNull(fout);
fout.close();
files = meta.list(Collections.singletonList(file.getParent()));
assertEquals(1, files.size());
deleteFs.delete(file.getParent(), true);
janitor.clearPath(testPath);
System.out.println("create(FileSystem, boolean, int, Progressable)");
fout = deleteFs.create(file, true, 4096, new Progressable(){
@Override
public void progress() {
}
});
assertNotNull(fout);
fout.close();
files = meta.list(Collections.singletonList(file.getParent()));
assertEquals(1, files.size());
deleteFs.delete(file.getParent(), true);
janitor.clearPath(testPath);
System.out.println("create(FileSystem, boolean, int, short, long)");
fout = deleteFs.create(file, true, 4096, (short)1, 100000000);
assertNotNull(fout);
fout.close();
files = meta.list(Collections.singletonList(file.getParent()));
assertEquals(1, files.size());
deleteFs.delete(file.getParent(), true);
janitor.clearPath(testPath);
System.out.println("create(FileSystem, boolean, int, short, long, Progressable)");
fout = deleteFs.create(file, true, 4096, (short)1, 100000000,new Progressable(){
@Override
public void progress() {
}
});
assertNotNull(fout);