Class TestClassExecutionResult.Builder
- java.lang.Object
-
- de.bmiag.tapir.executiontest.expectation.execution.TestClassExecutionResult.Builder
-
- Enclosing class:
- TestClassExecutionResult
public static final class TestClassExecutionResult.Builder extends java.lang.Object
Builds instances of typeTestClassExecutionResult
.Builder
is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setComparableThrowable(ComparableThrowable comparableThrowable)
Initializes the default value for thecomparableThrowable
attribute.void
setComparableThrowable(java.util.Optional<ComparableThrowable> comparableThrowable)
Initializes the value for thecomparableThrowable
attribute.void
setExecutionState(ExecutionState executionState)
Initializes the value for theexecutionState
attribute.void
setJavaClass(java.lang.Class<?> javaClass)
Initializes the value for thejavaClass
attribute.void
setParameters(java.lang.Iterable<TestParameterExpectation> elements)
Adds elements toparameters
.
-
-
-
Method Detail
-
setJavaClass
public void setJavaClass(java.lang.Class<?> javaClass)
Initializes the value for thejavaClass
attribute.- Parameters:
javaClass
- The value for javaClass
-
setParameters
public void setParameters(java.lang.Iterable<TestParameterExpectation> elements)
Adds elements toparameters
.- Parameters:
elements
- An iterable of parameters elements
-
setExecutionState
public void setExecutionState(ExecutionState executionState)
Initializes the value for theexecutionState
attribute.- Parameters:
executionState
- The value for executionState
-
setComparableThrowable
public void setComparableThrowable(java.util.Optional<ComparableThrowable> comparableThrowable)
Initializes the value for thecomparableThrowable
attribute.- Parameters:
comparableThrowable
- The value for comparableThrowable
-
setComparableThrowable
public void setComparableThrowable(ComparableThrowable comparableThrowable)
Initializes the default value for thecomparableThrowable
attribute.- Parameters:
comparableThrowable
- The value for comparableThrowable
-
-