sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boglarka Egyed (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SQOOP-3090) Normalize test cases where expect an exception
Date Thu, 16 Mar 2017 21:06:42 GMT

     [ https://issues.apache.org/jira/browse/SQOOP-3090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boglarka Egyed resolved SQOOP-3090.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.4.7

> Normalize test cases where expect an exception
> ----------------------------------------------
>
>                 Key: SQOOP-3090
>                 URL: https://issues.apache.org/jira/browse/SQOOP-3090
>             Project: Sqoop
>          Issue Type: Improvement
>    Affects Versions: 1.4.6
>            Reporter: Boglarka Egyed
>            Assignee: Boglarka Egyed
>            Priority: Minor
>             Fix For: 1.4.7
>
>
> Many test cases uses the following logic to test if an exception has been thrown:
> {code:java}
> try {
>       <do something>
>       fail("Expected exception");
>     } catch (someException e) {
>       // expected
>     }
>   }
> {code}
> This form is not self-explanatory enough and could be replaced by a one line ExpectedException
check which would be more clean.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message