Class TestStepExecutionResult.Builder

  • Enclosing class:
    TestStepExecutionResult

    public static final class TestStepExecutionResult.Builder
    extends java.lang.Object
    Builds instances of type TestStepExecutionResult.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • setTestClassParameters

        public void setTestClassParameters​(java.lang.Iterable<TestParameterExpectation> elements)
        Adds elements to testClassParameters.
        Parameters:
        elements - An iterable of testClassParameters elements
      • setName

        public void setName​(java.lang.String name)
        Initializes the value for the name attribute.
        Parameters:
        name - The value for name
      • setJavaClass

        public void setJavaClass​(java.lang.Class<?> javaClass)
        Initializes the value for the javaClass attribute.
        Parameters:
        javaClass - The value for javaClass
      • setParameters

        public void setParameters​(java.lang.Iterable<TestParameterExpectation> elements)
        Adds elements to parameters.
        Parameters:
        elements - An iterable of parameters elements
      • setExecutionState

        public void setExecutionState​(ExecutionState executionState)
        Initializes the value for the executionState attribute.
        Parameters:
        executionState - The value for executionState
      • setComparableThrowable

        public void setComparableThrowable​(java.util.Optional<ComparableThrowable> comparableThrowable)
        Initializes the value for the comparableThrowable attribute.
        Parameters:
        comparableThrowable - The value for comparableThrowable
      • setComparableThrowable

        public void setComparableThrowable​(ComparableThrowable comparableThrowable)
        Initializes the default value for the comparableThrowable attribute.
        Parameters:
        comparableThrowable - The value for comparableThrowable