Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
The following exception handling code section in testFileStatusOnMountLink()
try { fcView.getFileStatus(new Path("/danglingLink")); Assert.fail("Excepted a not found exception here"); } catch ( FileNotFoundException e) { // as excepted }
can be replaced with a single in the @Test
@Test(expected = FileNotFoundException.class)