Package org.infinispan.commons.test.skip
Class SkipJunit
- java.lang.Object
-
- org.infinispan.commons.test.skip.SkipJunit
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class SkipJunit extends Object implements org.junit.rules.TestRule
Use as a@Ruleor@ClassRuleto skip all methods in a class on some OSes.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description)static voidonlyOnOS(OS... oses)Use within a@Testmethod to run this test only on certain OSes.static voidskipOnOS(OS... oses)Use within a@Testmethod to skip that method on some OSes.
-
-
-
Constructor Detail
-
SkipJunit
public SkipJunit(OS... oses)
-
-
Method Detail
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)- Specified by:
applyin interfaceorg.junit.rules.TestRule
-
skipOnOS
public static void skipOnOS(OS... oses)
Use within a@Testmethod to skip that method on some OSes. Use in a@BeforeClassmethod to skip all methods in a class on some OSes.
-
onlyOnOS
public static void onlyOnOS(OS... oses)
Use within a@Testmethod to run this test only on certain OSes. Use in a@BeforeClassmethod to run all methods in a class only on some OSes.
-
-