pt.digitalis.dif.sanitycheck
Class SanityCheckResult

java.lang.Object
  extended by pt.digitalis.dif.sanitycheck.SanityCheckResult

public class SanityCheckResult
extends Object

Author:
Galaio da Silva jgalaio@digitalis.pt
Created on:
1 de Jul de 2011

Constructor Summary
SanityCheckResult(SanityCheckTestSuiteDefinition testSuite, ExecutionResult executionsResult)
           
 
Method Summary
 void addTestResult(TestResult result)
          Add a unit Sanity check result
 Date getEndTime()
          Inspector for the 'endTime' attribute.
 String getExecutionError()
          Inspector for the 'executionError' attribute.
 ExecutionResult getExecutionsResult()
          Inspector for the 'executionsResult' attribute.
 Date getStartTime()
          Inspector for the 'startTime' attribute.
 Long getTestExecutionDuration()
           
 List<TestResult> getTestResults()
          Inspector for the 'results' attribute.
 SanityCheckTestSuiteDefinition getTestSuite()
          Inspector for the 'testSuite' attribute.
 void setEndTime(Date endTime)
          Modifier for the 'endTime' attribute.
 void setExecutionError(String executionError)
          Modifier for the 'executionError' attribute.
 void setExecutionsResult(ExecutionResult executionsResult)
          Modifier for the 'executionsResult' attribute.
 void setStartTime(Date startTime)
          Modifier for the 'startTime' attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SanityCheckResult

public SanityCheckResult(SanityCheckTestSuiteDefinition testSuite,
                         ExecutionResult executionsResult)
Parameters:
testSuite -
executionsResult -
Method Detail

addTestResult

public void addTestResult(TestResult result)
Add a unit Sanity check result

Parameters:
result - SanityUnitResult

getEndTime

public Date getEndTime()
Inspector for the 'endTime' attribute.

Returns:
the endTime value

getExecutionError

public String getExecutionError()
Inspector for the 'executionError' attribute.

Returns:
the executionError value

getExecutionsResult

public ExecutionResult getExecutionsResult()
Inspector for the 'executionsResult' attribute.

Returns:
the executionsResult value

getStartTime

public Date getStartTime()
Inspector for the 'startTime' attribute.

Returns:
the startTime value

getTestExecutionDuration

public Long getTestExecutionDuration()
Returns:
the milliseconds that the test execution took, or Null if it has not started/ended yet.

getTestResults

public List<TestResult> getTestResults()
Inspector for the 'results' attribute.

Returns:
the results value

getTestSuite

public SanityCheckTestSuiteDefinition getTestSuite()
Inspector for the 'testSuite' attribute.

Returns:
the testSuite value

setEndTime

public void setEndTime(Date endTime)
Modifier for the 'endTime' attribute.

Parameters:
endTime - the new endTime value to set

setExecutionError

public void setExecutionError(String executionError)
Modifier for the 'executionError' attribute.

Parameters:
executionError - the new executionError value to set

setExecutionsResult

public void setExecutionsResult(ExecutionResult executionsResult)
Modifier for the 'executionsResult' attribute.

Parameters:
executionsResult - the new executionsResult value to set

setStartTime

public void setStartTime(Date startTime)
Modifier for the 'startTime' attribute.

Parameters:
startTime - the new startTime value to set


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.