Class TestStepExecutionResult.Builder
- java.lang.Object
-
- de.bmiag.tapir.executiontest.expectation.execution.TestStepExecutionResult.Builder
-
- Enclosing class:
- TestStepExecutionResult
public static final class TestStepExecutionResult.Builder extends java.lang.Object
Builds instances of typeTestStepExecutionResult
.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
setName(java.lang.String name)
Initializes the value for thename
attribute.void
setParameters(java.lang.Iterable<TestParameterExpectation> elements)
Adds elements toparameters
.void
setTestClassParameters(java.lang.Iterable<TestParameterExpectation> elements)
Adds elements totestClassParameters
.
-
-
-
Method Detail
-
setTestClassParameters
public void setTestClassParameters(java.lang.Iterable<TestParameterExpectation> elements)
Adds elements totestClassParameters
.- Parameters:
elements
- An iterable of testClassParameters elements
-
setName
public void setName(java.lang.String name)
Initializes the value for thename
attribute.- Parameters:
name
- The value for name
-
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
-
-