Class TestClassExecutionResult
- java.lang.Object
-
- de.bmiag.tapir.executiontest.expectation.execution.TestClassExecutionResult
-
- All Implemented Interfaces:
JavaClassBased
,ExecutionResult
,Parameterized
public final class TestClassExecutionResult extends java.lang.Object implements JavaClassBased, Parameterized, ExecutionResult
Result of a test class execution.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestClassExecutionResult.Builder
Builds instances of typeTestClassExecutionResult
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestClassExecutionResult
build(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestClassExecutionResult.Builder> init)
Creates an immutable instance of TestClassExecutionResult.TestClassExecutionResult
copy(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestClassExecutionResult.Builder> init)
Creates an immutable copy of this instance.boolean
equals(java.lang.Object obj)
java.util.Optional<ComparableThrowable>
getComparableThrowable()
Returns the throwable, if there is any.ExecutionState
getExecutionState()
Returns the execution state.java.lang.Class<?>
getJavaClass()
The underlying java class.java.util.List<TestParameterExpectation>
getParameters()
Returns the expected parameters.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getJavaClass
public java.lang.Class<?> getJavaClass()
Description copied from interface:JavaClassBased
The underlying java class.- Specified by:
getJavaClass
in interfaceJavaClassBased
- Returns:
- The value of the
javaClass
attribute
-
getParameters
public java.util.List<TestParameterExpectation> getParameters()
Description copied from interface:Parameterized
Returns the expected parameters.- Specified by:
getParameters
in interfaceParameterized
- Returns:
- The value of the
parameters
attribute
-
getExecutionState
public ExecutionState getExecutionState()
Description copied from interface:ExecutionResult
Returns the execution state.- Specified by:
getExecutionState
in interfaceExecutionResult
- Returns:
- The value of the
executionState
attribute
-
getComparableThrowable
public java.util.Optional<ComparableThrowable> getComparableThrowable()
Description copied from interface:ExecutionResult
Returns the throwable, if there is any. Only set in conjunction withExecutionState.FAILED
.- Specified by:
getComparableThrowable
in interfaceExecutionResult
- Returns:
- The value of the
comparableThrowable
attribute
-
equals
@Pure public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
@Pure public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
@Pure public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
build
public static TestClassExecutionResult build(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestClassExecutionResult.Builder> init)
Creates an immutable instance of TestClassExecutionResult. The values can be initialized by using the init parameter.- Parameters:
init
- The initializer- Returns:
- An immutable TestClassExecutionResult instance
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
copy
public TestClassExecutionResult copy(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestClassExecutionResult.Builder> init)
Creates an immutable copy of this instance. Uses accessors to get values to initialize the new immutable instance. The values can be modified by using the init parameter.- Parameters:
init
- The initializer- Returns:
- A copied immutable TestClassExecutionResult instance
-
-