All Superinterfaces:
Test<Fail,Expected,ResultOfFail,Actual>
All Known Implementing Classes:
BasicFail

public interface Fail extends Test<Fail,Expected,ResultOfFail,Actual>

A always-failing test.

>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A builder for fails.
  • Method Summary

    Modifier and Type
    Method
    Description
    default ResultOfFail
    run()
    Fails this test (there is no other option).
    run(Actual actual, Exception cause)
    Fails this test (there is no other option) with the given cause.

    Methods inherited from interface org.tudalgo.algoutils.tutor.general.assertions.Test

    expected
  • Method Details

    • run

      ResultOfFail run(Actual actual, Exception cause)

      Fails this test (there is no other option) with the given cause.

      Parameters:
      cause - the cause of the failure
      Returns:
      the result of this fail
    • run

      default ResultOfFail run()

      Fails this test (there is no other option).

      Returns:
      the result of this fail