Class SkipTestNG


  • public class SkipTestNG
    extends Object
    Allows to skip a test on certain Operation Systems.
    • Constructor Summary

      Constructors 
      Constructor Description
      SkipTestNG()  
    • Constructor Detail

      • SkipTestNG

        public SkipTestNG()
    • 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 @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.