Class TestSubResult
- java.lang.Object
-
- de.gebit.integrity.runner.results.Result
-
- de.gebit.integrity.runner.results.FixtureExecutionResult
-
- de.gebit.integrity.runner.results.test.TestSubResult
-
- Direct Known Subclasses:
TestExceptionSubResult
,TestExecutedSubResult
public abstract class TestSubResult extends FixtureExecutionResult
Tests have one or more sub-results, with standard tests always having one, but tabletests potentially having more of them, one for each row.- Author:
- Rene Schneider - initial API and implementation
-
-
Constructor Summary
Constructors Constructor Description TestSubResult(java.util.Map<java.lang.String,TestComparisonResult> someComparisonResults, FixtureWrapper<?> aFixtureInstance, java.lang.String aFixtureMethod, java.lang.Long anExecutionTime)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,TestComparisonResult>
getComparisonResults()
boolean
isUndetermined()
Whether this sub-result is yet undetermined.boolean
wereAllComparisonsSuccessful()
Whether all comparisons performed in this sub-result have been successful.-
Methods inherited from class de.gebit.integrity.runner.results.FixtureExecutionResult
getExtendedResults, getFixtureInstance, getFixtureMethod
-
Methods inherited from class de.gebit.integrity.runner.results.Result
getExecutionTime
-
-
-
-
Constructor Detail
-
TestSubResult
public TestSubResult(java.util.Map<java.lang.String,TestComparisonResult> someComparisonResults, FixtureWrapper<?> aFixtureInstance, java.lang.String aFixtureMethod, java.lang.Long anExecutionTime)
Creates a new instance.- Parameters:
someComparisonResults
- the comparison resultsaFixtureInstance
- The fixture instance (wrapped) - may be null if no fixtures are called in the current phase (for example during the dry run).aFixtureMethod
- the method that was executedanExecutionTime
- the time taken to execute the fixture method
-
-
Method Detail
-
getComparisonResults
public java.util.Map<java.lang.String,TestComparisonResult> getComparisonResults()
-
isUndetermined
public boolean isUndetermined()
Whether this sub-result is yet undetermined.- Returns:
- true if undetermined, false otherwise
-
wereAllComparisonsSuccessful
public boolean wereAllComparisonsSuccessful()
Whether all comparisons performed in this sub-result have been successful.- Returns:
- true if all comparisons passed, false otherwise
-
-