Package org.infinispan.commons.test.skip
Class SkipTestNG
- java.lang.Object
-
- org.infinispan.commons.test.skip.SkipTestNG
-
public class SkipTestNG extends Object
Allows to skip a test on certain Operation Systems.
-
-
Constructor Summary
Constructors Constructor Description SkipTestNG()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidonlyOnOS(OS... oses)Use within a@Testmethod to run this test only on certain OSes.static voidskipBeforeJDK(int major)Use within a@Testmethod to skip that method on all versions of Java less than the one specified.static voidskipIf(boolean skip, String message)Skip the test if a condition is true.static voidskipOnOS(OS... oses)Use within a@Testmethod to skip that method on some OSes.static voidskipSinceJDK(int major)Use within a@Testmethod to skip that method on all versions of Java equal or greater to the one specified.
-
-
-
Method Detail
-
skipIf
public static void skipIf(boolean skip, String message)Skip the test if a condition is true.
-
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.
-
skipSinceJDK
public static void skipSinceJDK(int major)
Use within a@Testmethod to skip that method on all versions of Java equal or greater to the one specified. Use in a@BeforeClassmethod to skip all methods in a class on some JDKs.
-
skipBeforeJDK
public static void skipBeforeJDK(int major)
Use within a@Testmethod to skip that method on all versions of Java less than the one specified. Use in a@BeforeClassmethod to skip all methods in a class on some JDKs.
-
-