Annotation Interface Skip


@Retention(RUNTIME) @Target({METHOD,TYPE}) @Deprecated(forRemoval=true) public @interface Skip
Deprecated, for removal: This API element is subject to removal in a future version.
Use JUnit 5 and DisabledOnOs or DisabledIf.
An annotation, used in combination with Skip.Matcher, to determine when/if tests should be skipped.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static interface 
    Deprecated, for removal: This API element is subject to removal in a future version.
    Simple boolean assertion
    static interface 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Skip.Matcher>
    Deprecated, for removal: This API element is subject to removal in a future version.
    The condition which causes a skip
    Deprecated, for removal: This API element is subject to removal in a future version.
    A message describing the reason for the skip
  • Element Details

    • condition

      Class<? extends Skip.Matcher> condition
      Deprecated, for removal: This API element is subject to removal in a future version.
      The condition which causes a skip
      Returns:
      The condition
    • message

      String message
      Deprecated, for removal: This API element is subject to removal in a future version.
      A message describing the reason for the skip
      Returns:
      Descriptive message