aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/unix/FilesystemUtilsTest.java
diff options
context:
space:
mode:
authorGravatar Philipp Wollermann <philwo@google.com>2015-06-30 16:54:55 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-06-30 19:03:11 +0000
commitc3228f4ca75c5c69ee4063f02e237d91af43ea05 (patch)
tree222df57cb6d7fe5b9685a3c604e4f55548fcab91 /src/test/java/com/google/devtools/build/lib/unix/FilesystemUtilsTest.java
parent1d50375f21c08670dfb9946db762b8e9f7e53d1b (diff)
Test for the correct exception in FilesystemUtilsTest.
-- MOS_MIGRATED_REVID=97236025
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/unix/FilesystemUtilsTest.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/unix/FilesystemUtilsTest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/unix/FilesystemUtilsTest.java b/src/test/java/com/google/devtools/build/lib/unix/FilesystemUtilsTest.java
index d23bbb2f7b..aad70b24fd 100644
--- a/src/test/java/com/google/devtools/build/lib/unix/FilesystemUtilsTest.java
+++ b/src/test/java/com/google/devtools/build/lib/unix/FilesystemUtilsTest.java
@@ -31,7 +31,6 @@ import org.junit.runners.JUnit4;
import java.io.File;
import java.io.FileNotFoundException;
-import java.io.IOException;
/**
* This class tests the FilesystemUtils class.
@@ -106,7 +105,7 @@ public class FilesystemUtilsTest {
try {
FilesystemUtils.setWritable(foo);
fail("Expected FilePermissionException, but wasn't thrown.");
- } catch (IOException e) {
+ } catch (FilePermissionException e) {
assertThat(e).hasMessage(foo + " (Operation not permitted)");
}
}