Annotation Type ShouldFailWhen


@Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface ShouldFailWhen
Marker annotation that defines if a test failure should be reported or not base upon condition passed to the annotation. If the condition evaluates to true and a test fails then the failure is ignored. If the test does not fail then a failure is reported. If the condition evaluates to false then the test failure is handled in a usual way.
Author:
Jiri Pechanec
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Supplier<Boolean>>