com.cwctravel.hudson.plugins.suitegroupedtests.junit
Class ClassResult

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.tasks.junit.TestObject
          extended by hudson.tasks.test.TestObject
              extended by hudson.tasks.test.TestResult
                  extended by hudson.tasks.test.TabulatedResult
                      extended by com.cwctravel.hudson.plugins.suitegroupedtests.junit.ClassResult
All Implemented Interfaces:
hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem, java.io.Serializable, java.lang.Comparable<ClassResult>

public final class ClassResult
extends hudson.tasks.test.TabulatedResult
implements java.lang.Comparable<ClassResult>

Cumulative test result of a test class.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Constructor Summary
ClassResult(hudson.tasks.test.TestObject parent, JUnitSummaryInfo summary)
           
 
Method Summary
 int compareTo(ClassResult that)
           
 hudson.tasks.test.TestResult findCorrespondingResult(java.lang.String id)
           
 CaseResult getCaseResult(java.lang.String name)
           
 java.util.List<CaseResult> getChildren()
           
 java.lang.String getChildTitle()
           
 java.lang.String getClassName()
           
 java.lang.String getDisplayName()
           
 float getDuration()
           
 java.lang.Object getDynamic(java.lang.String name, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 int getFailCount()
           
 int getFailDiff()
           
 int getFailedSince()
           
 hudson.model.Run<?,?> getFailedSinceRun()
           
 java.util.List<CaseResult> getFailedTests()
           
 java.lang.String getFullName()
           
 hudson.tasks.junit.History getHistory()
           
 JUnitMetricsInfo getMetrics()
           
 java.lang.String getName()
           
 hudson.model.AbstractBuild<?,?> getOwner()
           
 hudson.tasks.test.TestObject getParent()
           
 int getPassCount()
           
 int getPassDiff()
           
 java.util.List<CaseResult> getPassedTests()
           
 ClassResult getPreviousResult()
           
 java.lang.String getRelativePathFrom(hudson.tasks.test.TestObject it)
          Gets the relative path to this test case from the given object.
 java.lang.String getRootUrl(java.lang.String urlName)
           
 java.lang.String getRootUrl(hudson.tasks.junit.TestAction testAction)
           
 java.lang.String getSafeName()
           
 int getSkipCount()
           
 int getSkipDiff()
           
 java.util.List<CaseResult> getSkippedTests()
           
 java.util.List<hudson.tasks.junit.TestAction> getTestActions()
           
 SuiteGroupResultAction getTestResultAction()
           
 java.lang.String getTitle()
           
 int getTotalDiff()
           
 boolean hasChildren()
           
 
Methods inherited from class hudson.tasks.test.TestResult
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getParentAction, getResultInBuild, getStderr, getStdout, isPassed, setParent, setParentAction, tally, toPrettyString
 
Methods inherited from class hudson.tasks.test.TestObject
doSubmitDescription, getApi, getDescription, getDurationString, getId, getSearchUrl, getTestAction, getTestResult, getTopLevelTestResult, getTotalCount, getUrl, safe, setDescription, uniquifyName
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassResult

public ClassResult(hudson.tasks.test.TestObject parent,
                   JUnitSummaryInfo summary)
Method Detail

getOwner

public hudson.model.AbstractBuild<?,?> getOwner()
Specified by:
getOwner in class hudson.tasks.test.TestObject

getParent

public hudson.tasks.test.TestObject getParent()
Overrides:
getParent in class hudson.tasks.test.TestObject

getTestActions

public java.util.List<hudson.tasks.junit.TestAction> getTestActions()
Overrides:
getTestActions in class hudson.tasks.test.TestObject

getTestResultAction

public SuiteGroupResultAction getTestResultAction()
Overrides:
getTestResultAction in class hudson.tasks.test.TestObject

getPreviousResult

public ClassResult getPreviousResult()
Overrides:
getPreviousResult in class hudson.tasks.test.TestResult

findCorrespondingResult

public hudson.tasks.test.TestResult findCorrespondingResult(java.lang.String id)
Specified by:
findCorrespondingResult in class hudson.tasks.test.TestObject

getTitle

public java.lang.String getTitle()
Overrides:
getTitle in class hudson.tasks.test.TestResult

getChildTitle

public java.lang.String getChildTitle()
Overrides:
getChildTitle in class hudson.tasks.test.TabulatedResult

getName

@Exported(visibility=999)
public java.lang.String getName()
Overrides:
getName in class hudson.tasks.test.TestObject

getSafeName

public java.lang.String getSafeName()
Overrides:
getSafeName in class hudson.tasks.test.TestObject

getCaseResult

public CaseResult getCaseResult(java.lang.String name)

getDynamic

public java.lang.Object getDynamic(java.lang.String name,
                                   org.kohsuke.stapler.StaplerRequest req,
                                   org.kohsuke.stapler.StaplerResponse rsp)
Overrides:
getDynamic in class hudson.tasks.test.TestObject

getFailedTests

public java.util.List<CaseResult> getFailedTests()
Overrides:
getFailedTests in class hudson.tasks.test.TestResult

getSkippedTests

public java.util.List<CaseResult> getSkippedTests()
Overrides:
getSkippedTests in class hudson.tasks.test.TestResult

getPassedTests

public java.util.List<CaseResult> getPassedTests()
Overrides:
getPassedTests in class hudson.tasks.test.TestResult

getChildren

@Exported(name="child")
public java.util.List<CaseResult> getChildren()
Specified by:
getChildren in class hudson.tasks.test.TabulatedResult

hasChildren

public boolean hasChildren()
Specified by:
hasChildren in class hudson.tasks.test.TabulatedResult

getDuration

public float getDuration()
Overrides:
getDuration in class hudson.tasks.test.TestResult

getPassCount

@Exported
public int getPassCount()
Overrides:
getPassCount in class hudson.tasks.test.TestResult

getFailCount

@Exported
public int getFailCount()
Overrides:
getFailCount in class hudson.tasks.test.TestResult

getSkipCount

@Exported
public int getSkipCount()
Overrides:
getSkipCount in class hudson.tasks.test.TestResult

getPassDiff

public int getPassDiff()

getSkipDiff

public int getSkipDiff()

getFailDiff

public int getFailDiff()

getTotalDiff

public int getTotalDiff()

getMetrics

public JUnitMetricsInfo getMetrics()

getFailedSince

public int getFailedSince()
Overrides:
getFailedSince in class hudson.tasks.test.TestResult

getFailedSinceRun

public hudson.model.Run<?,?> getFailedSinceRun()
Overrides:
getFailedSinceRun in class hudson.tasks.test.TestResult

getClassName

public java.lang.String getClassName()

compareTo

public int compareTo(ClassResult that)
Specified by:
compareTo in interface java.lang.Comparable<ClassResult>

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.ModelObject

getFullName

public java.lang.String getFullName()

getRelativePathFrom

public java.lang.String getRelativePathFrom(hudson.tasks.test.TestObject it)
Gets the relative path to this test case from the given object.

Overrides:
getRelativePathFrom in class hudson.tasks.test.TestObject

getRootUrl

public java.lang.String getRootUrl(java.lang.String urlName)

getRootUrl

public java.lang.String getRootUrl(hudson.tasks.junit.TestAction testAction)

getHistory

public hudson.tasks.junit.History getHistory()
Overrides:
getHistory in class hudson.tasks.test.TestObject


Copyright © 2004-2012. All Rights Reserved.