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 resultAT- the type of the actual behaviorTT- the type of the testET- the type of the expected behaviorBT- 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.
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
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
Sets the exception of the result.
- Parameters:
exception- the exception- Returns:
- this builder
-
test
Sets the test of the result.
- Parameters:
test- the test- Returns:
- this builder
-