提交 92b1eb7a 编写于 作者: H Henry Saputra

Simple fix to respect return value return by File APIs.

上级 27d1e7f8
......@@ -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;
......@@ -39,15 +40,15 @@ public class BlobUtilsTest {
// 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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册