Skip to content

Commit

Permalink
Simple fix to respect return value return by File APIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsaputra committed Mar 6, 2015
1 parent 27d1e7f commit 92b1eb7
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package org.apache.flink.runtime.blob;

import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock;

import com.google.common.io.Files;
Expand All @@ -39,15 +40,15 @@ public void before() {
// Prepare test directory
blobUtilsTestDirectory = Files.createTempDir();

blobUtilsTestDirectory.setExecutable(true, false);
blobUtilsTestDirectory.setReadable(true, false);
blobUtilsTestDirectory.setWritable(false, false);
assertTrue(blobUtilsTestDirectory.setExecutable(true, false));
assertTrue(blobUtilsTestDirectory.setReadable(true, false));
assertTrue(blobUtilsTestDirectory.setWritable(false, false));
}

@After
public void after() {
// Cleanup test directory
blobUtilsTestDirectory.delete();
assertTrue(blobUtilsTestDirectory.delete());
}

@Test(expected = Exception.class)
Expand Down

0 comments on commit 92b1eb7

Please sign in to comment.