Interface Test.Builder<TT extends Test<TT,ET,RT,AT>,ET extends Expected,RT extends Result<RT,AT,TT,ET>,AT extends Actual,BT extends Test.Builder<TT,ET,RT,AT,BT>>

Type Parameters:
TT - the type of the test
ET - the type of the expected behavior
RT - the type of the result
AT - the type of the actual behavior
BT - the type of the builder
All Known Subinterfaces:
Fail.Builder, TestOfCall.Builder, TestOfExceptionalCall.Builder<T>, TestOfObject.Builder<T>
All Known Implementing Classes:
BasicFail.Builder, BasicTest.Builder, BasicTestOfCall.Builder, BasicTestOfExceptionalCall.Builder, BasicTestOfObject.Builder
Enclosing interface:
Test<TT extends Test<TT,ET,RT,AT>,ET extends Expected,RT extends Result<RT,AT,TT,ET>,AT extends Actual>

public static interface Test.Builder<TT extends Test<TT,ET,RT,AT>,ET extends Expected,RT extends Result<RT,AT,TT,ET>,AT extends Actual,BT extends Test.Builder<TT,ET,RT,AT,BT>>

A builder for tests.

  • Method Details

    • build

      TT build()
      Builds a test with the configured properties and return this.
      Returns:
      the test
    • expected

      BT expected(ET expected)

      Sets the expected behavior.

      Parameters:
      expected - the expected behavior
      Returns:
      this builder