Package org.infinispan.commons.test.skip
Class SkipJunit
java.lang.Object
org.infinispan.commons.test.skip.SkipJunit
- All Implemented Interfaces:
org.junit.rules.TestRule
Use as a
@Rule or @ClassRule to skip all methods in a class on some OSes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) static voidUse within a@Testmethod to run this test only on certain OSes.static voidskipCondition(Supplier<Boolean> condition) static voidUse within a@Testmethod to skip that method on some OSes.static voidskipSinceJDK(int major)
-
Constructor Details
-
SkipJunit
-
SkipJunit
public SkipJunit(int jdkMajorVersion)
-
-
Method Details
-
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
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
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. -
skipSinceJDK
public static void skipSinceJDK(int major) -
skipCondition
-