[ 
https://issues.apache.org/jira/browse/HADOOP-9427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13610177#comment-13610177
 ] 

Steve Loughran commented on HADOOP-9427:
----------------------------------------

+1 to this. Can you tease out platform assumption tests into their own methods, 
eg {{PlatformAssumptions.assumeUnix()}}, {{assumeWindows()}}. You don't need to 
use the {{@Assume}} tags to implement the logic, as you can just throw an 
{{AssumptionViolatedException}} in any method you feel like. That helps you 
test the assumption logic.
                
> use jUnit assumptions to skip platform-specific tests
> -----------------------------------------------------
>
>                 Key: HADOOP-9427
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9427
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 3.0.0
>            Reporter: Arpit Agarwal
>             Fix For: 3.0.0
>
>
> Certain tests for platform-specific functionality are either executed only on 
> Windows or bypass on Windows using checks like "if (Path.WINDOWS)" e.g. 
> TestNativeIO.
> Prefer using jUnit assumptions instead.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to