Xing Lin created HADOOP-18093:
---------------------------------

             Summary: Better exception handling for testFileStatusOnMountLink() 
in ViewFsBaseTest.java
                 Key: HADOOP-18093
                 URL: https://issues.apache.org/jira/browse/HADOOP-18093
             Project: Hadoop Common
          Issue Type: Improvement
            Reporter: Xing Lin


The following exception handling code section in testFileStatusOnMountLink() 

 
{code:java}
    try {
      fcView.getFileStatus(new Path("/danglingLink"));
      Assert.fail("Excepted a not found exception here");
    } catch ( FileNotFoundException e) {
      // as excepted
    }{code}
can be replaced with a single in the @Test 
{code:java}
@Test(expected = FileNotFoundException.class){code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-dev-h...@hadoop.apache.org

Reply via email to