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
  • Required Element Summary

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

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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Symbolic constant used to determine the Linux operating system, from the "os.name" system property.
    static final String
    Symbolic constant used to determine the OS X operating system, from the "os.name" system property.
    static final String
    Symbolic constant used to determine the Windows operating system, from the "os.name" system property.
  • Field Details

    • WINDOWS

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

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

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

    • value

      String[] value
      The list of OS names on which the test should be skipped.
      Returns:
      a list of "symbolic" OS names.
      See Also:
    • 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:
      ""