File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -522,7 +522,7 @@ public void testListOnInternalDirsOfMountTable() throws IOException {
522522 Assert .assertTrue ("A mount should appear as symlink" , fs .isSymlink ());
523523 }
524524
525- @ Test
525+ @ Test ( expected = FileNotFoundException . class )
526526 public void testFileStatusOnMountLink () throws IOException {
527527 Assert .assertTrue ("Slash should appear as dir" ,
528528 fcView .getFileStatus (new Path ("/" )).isDirectory ());
@@ -534,12 +534,7 @@ public void testFileStatusOnMountLink() throws IOException {
534534 checkFileStatus (fcView , "/internalDir/internalDir2/linkToDir3" , fileType .isDir );
535535 checkFileStatus (fcView , "/linkToAFile" , fileType .isFile );
536536
537- try {
538- fcView .getFileStatus (new Path ("/danglingLink" ));
539- Assert .fail ("Excepted a not found exception here" );
540- } catch ( FileNotFoundException e ) {
541- // as excepted
542- }
537+ fcView .getFileStatus (new Path ("/danglingLink" ));
543538 }
544539
545540 @ Test
You can’t perform that action at this time.
0 commit comments