Fix AsyncFileTest

This commit is contained in:
pivovarit 2016-11-28 22:18:22 +01:00
parent 333d3bc122
commit 602e98c6c3
1 changed files with 3 additions and 3 deletions

View File

@ -59,9 +59,9 @@ public class AsyncFileTest {
@Test
public void givenPathAndContent_whenWritesToFileWithFuture_thenCorrect() throws IOException, ExecutionException, InterruptedException {
String fileName = UUID.randomUUID().toString();
Path path = Paths.get(Paths.get(HOME));
AsynchronousFileChannel fileChannel = AsynchronousFileChannel.open(path, StandardOpenOption.WRITE, StandardOpenOption.CREATE,StandardOpenOption.DELETE_ON_CLOSE);
String fileName = "temp";
Path path = Paths.get(fileName);
AsynchronousFileChannel fileChannel = AsynchronousFileChannel.open(path, StandardOpenOption.WRITE, StandardOpenOption.CREATE);
ByteBuffer buffer = ByteBuffer.allocate(1024);
long position = 0;