Annotation Type SkipOnOS


  • @Retention(RUNTIME)
    @Target({METHOD,TYPE})
    public @interface SkipOnOS
    Marker annotation used together with the SkipTestRule JUnit rule, that allows tests to be excluded from the build if they are run on certain platforms.
    Author:
    Horia Chiorean
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static String LINUX
      Symbolic constant used to determine the Linux operating system, from the "os.name" system property.
      static String MAC
      Symbolic constant used to determine the OS X operating system, from the "os.name" system property.
      static String WINDOWS
      Symbolic constant used to determine the Windows operating system, from the "os.name" system property.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String[] value
      The list of OS names on which the test should be skipped.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String description
      An optional description which explains why the test should be skipped.
    • Field Detail

      • WINDOWS

        static final String WINDOWS
        Symbolic constant used to determine the Windows operating system, from the "os.name" system property.
      • MAC

        static final String MAC
        Symbolic constant used to determine the OS X operating system, from the "os.name" system property.
      • LINUX

        static final String LINUX
        Symbolic constant used to determine the Linux operating system, from the "os.name" system property.
    • Element Detail

      • value

        String[] value
        The list of OS names on which the test should be skipped.
        Returns:
        a list of "symbolic" OS names.
        See Also:
        WINDOWS, MAC, LINUX
      • description

        String description
        An optional description which explains why the test should be skipped.
        Returns:
        a string which explains the reasons for skipping the test.
        Default:
        ""