You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/01/24 06:14:00 UTC

[jira] [Work logged] (HADOOP-18093) Better exception handling for testFileStatusOnMountLink() in ViewFsBaseTest.java

     [ https://issues.apache.org/jira/browse/HADOOP-18093?focusedWorklogId=713509&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-713509 ]

ASF GitHub Bot logged work on HADOOP-18093:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Jan/22 06:13
            Start Date: 24/Jan/22 06:13
    Worklog Time Spent: 10m 
      Work Description: xinglin opened a new pull request #3918:
URL: https://github.com/apache/hadoop/pull/3918


   ### Description of PR
   
   Use `@Test(expected = FileNotFoundException.class)` to indicate we are expecting a FileNotFound exception. This makes it consistent with how similar exceptions are handled in this class as well.
   
   ### How was this patch tested?
   
   mvn test -Dtest=TestViewFsLocalFs
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 713509)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>            Assignee: Xing Lin
>            Priority: Trivial
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org