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 @@ -521,7 +521,7 @@ public void testListOnInternalDirsOfMountTable() throws IOException {
521521 Assert .assertTrue ("A mount should appear as symlink" , fs .isSymlink ());
522522 }
523523
524- @ Test
524+ @ Test ( expected = FileNotFoundException . class )
525525 public void testFileStatusOnMountLink () throws IOException {
526526 Assert .assertTrue ("Slash should appear as dir" ,
527527 fcView .getFileStatus (new Path ("/" )).isDirectory ());
@@ -533,12 +533,7 @@ public void testFileStatusOnMountLink() throws IOException {
533533 checkFileStatus (fcView , "/internalDir/internalDir2/linkToDir3" , fileType .isDir );
534534 checkFileStatus (fcView , "/linkToAFile" , fileType .isFile );
535535
536- try {
537- fcView .getFileStatus (new Path ("/danglingLink" ));
538- Assert .fail ("Excepted a not found exception here" );
539- } catch ( FileNotFoundException e ) {
540- // as excepted
541- }
536+ fcView .getFileStatus (new Path ("/danglingLink" ));
542537 }
543538
544539 @ Test
You can’t perform that action at this time.
0 commit comments