com.atlassian.bamboo.results.tests
Class TestClassResult

java.lang.Object
  extended by com.atlassian.bamboo.results.tests.TestClassResult

public class TestClassResult
extends Object

Class to encapsulate the test results of a class


Constructor Summary
TestClassResult(List testResults)
           
TestClassResult(String name)
           
TestClassResult(TestResults testResults)
           
 
Method Summary
 void addTestResult(TestResults testResult)
           
 int compareTo(Object obj)
           
 boolean equals(Object o)
           
 String getKey()
           
 String getName()
           
 String getPrettyTotalDuration()
           
 String getShortName()
           
 List getTestResults()
           
 double getTotalDuration()
          Returns the sum of all test durations
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestClassResult

public TestClassResult(String name)

TestClassResult

public TestClassResult(TestResults testResults)

TestClassResult

public TestClassResult(List testResults)
Method Detail

getName

public String getName()

getKey

public String getKey()

getShortName

public String getShortName()

addTestResult

public void addTestResult(TestResults testResult)

getTestResults

public List getTestResults()

getTotalDuration

public double getTotalDuration()
Returns the sum of all test durations

Returns:
time in seconds of the total duration for the class

getPrettyTotalDuration

public String getPrettyTotalDuration()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

compareTo

public int compareTo(Object obj)


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.