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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    onlyOnOS(OS... oses)
    Use within a @Test method to run this test only on certain OSes.
    static void
    skipBeforeJDK(int major)
    Use within a @Test method to skip that method on all versions of Java less than the one specified.
    static void
    skipIf(boolean skip, String message)
    Skip the test if a condition is true.
    static void
    skipOnOS(OS... oses)
    Use within a @Test method to skip that method on some OSes.
    static void
    skipSinceJDK(int major)
    Use within a @Test method to skip that method on all versions of Java equal or greater to the one specified.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SkipTestNG

      public SkipTestNG()
  • Method Details

    • 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 @Test method to skip that method on some OSes. Use in a @BeforeClass method to skip all methods in a class on some OSes.
    • onlyOnOS

      public static void onlyOnOS(OS... oses)
      Use within a @Test method to run this test only on certain OSes. Use in a @BeforeClass method to run all methods in a class only on some OSes.
    • skipSinceJDK

      public static void skipSinceJDK(int major)
      Use within a @Test method to skip that method on all versions of Java equal or greater to the one specified. Use in a @BeforeClass method to skip all methods in a class on some JDKs.
    • skipBeforeJDK

      public static void skipBeforeJDK(int major)
      Use within a @Test method to skip that method on all versions of Java less than the one specified. Use in a @BeforeClass method to skip all methods in a class on some JDKs.