Class 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 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 results
        aFixtureInstance - 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 executed
        anExecutionTime - 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