Class TestSuiteExecutionResult
- java.lang.Object
-
- de.bmiag.tapir.executiontest.expectation.execution.TestSuiteExecutionResult
-
- All Implemented Interfaces:
JavaClassBased
,ExecutionResult
public final class TestSuiteExecutionResult extends java.lang.Object implements JavaClassBased, ExecutionResult
Result of a test suite execution.- Since:
- 2.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestSuiteExecutionResult.Builder
Builds instances of typeTestSuiteExecutionResult
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestSuiteExecutionResult
build(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestSuiteExecutionResult.Builder> init)
Creates an immutable instance of TestSuiteExecutionResult.TestSuiteExecutionResult
copy(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestSuiteExecutionResult.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.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
-
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 TestSuiteExecutionResult build(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestSuiteExecutionResult.Builder> init)
Creates an immutable instance of TestSuiteExecutionResult. The values can be initialized by using the init parameter.- Parameters:
init
- The initializer- Returns:
- An immutable TestSuiteExecutionResult instance
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
copy
public TestSuiteExecutionResult copy(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<TestSuiteExecutionResult.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 TestSuiteExecutionResult instance
-
-