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

Type Parameters:
RT - the type of the result
AT - the type of the actual behavior
TT - the type of the test
ET - the type of the expected behavior
BT - the type of the builder
All Known Subinterfaces:
ResultOfCall.Builder, ResultOfExceptionalCall.Builder<T>, ResultOfFail.Builder, ResultOfObject.Builder<T>
All Known Implementing Classes:
BasicResult.Builder, BasicResultOfCall.Builder, BasicResultOfExceptionalCall.Builder, BasicResultOfFail.Builder, BasicResultOfObject.Builder
Enclosing interface:
Result<RT extends Result<RT,AT,TT,ET>,AT extends Actual,TT extends Test<TT,ET,RT,AT>,ET extends Expected>

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

A type representing a builder for results.

  • Method Details

    • actual

      BT actual(AT actual)

      Sets the actual behavior of the result.

      Parameters:
      actual - the actual behavior
      Returns:
      this builder
    • build

      RT build()

      Builds a result for the given properties and returns it.

      Returns:
      the result
    • exception

      BT exception(Exception exception)

      Sets the exception of the result.

      Parameters:
      exception - the exception
      Returns:
      this builder
    • test

      BT test(TT test)

      Sets the test of the result.

      Parameters:
      test - the test
      Returns:
      this builder