Annotationsschnittstelle ExpectFailure


@Target({ANNOTATION_TYPE,METHOD}) @Retention(RUNTIME) @Documented public @interface ExpectFailure
Used to annotate methods that are expected to fail. Useful for testing jqwik itself
  • Elementdetails

    • checkResult

      Class<? extends Consumer<net.jqwik.api.lifecycle.PropertyExecutionResult>> checkResult
      Optionally specify a checker
      Standard:
      net.jqwik.testing.ExpectFailure.NullChecker.class
    • value

      String value
      Standard:
      ""
    • failureType

      Class<? extends Throwable> failureType
      Standard:
      net.jqwik.testing.ExpectFailure.NoFailure.class