com.cwctravel.hudson.plugins.suitegroupedtests
Class SuiteGroupResultAction

java.lang.Object
  extended by hudson.tasks.test.AbstractTestResultAction<SuiteGroupResultAction>
      extended by com.cwctravel.hudson.plugins.suitegroupedtests.SuiteGroupResultAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.HealthReportingAction, hudson.model.ModelObject, org.kohsuke.stapler.StaplerProxy

public class SuiteGroupResultAction
extends hudson.tasks.test.AbstractTestResultAction<SuiteGroupResultAction>
implements org.kohsuke.stapler.StaplerProxy


Nested Class Summary
static class SuiteGroupResultAction.Data
           
 
Field Summary
 
Fields inherited from class hudson.tasks.test.AbstractTestResultAction
owner
 
Constructor Summary
SuiteGroupResultAction(hudson.model.AbstractBuild<?,?> owner, JUnitSummaryInfo summary, java.lang.String moduleNames, hudson.model.BuildListener listener)
           
 
Method Summary
 java.util.List<hudson.tasks.junit.TestAction> getActions(hudson.tasks.test.TestObject object)
           
 java.lang.String getDisplayName()
           
 int getFailCount()
          Gets the number of failed tests.
 java.lang.String getModuleNames()
           
 SuiteGroupResult getResult()
          Get the result that this action represents.
 SuiteGroupResult getResultAsSuiteGroupResult()
          This convenience method is what getResult() should have been, but with a specified return type.
 java.lang.String getRootUrl(hudson.tasks.test.TestObject testObject, java.lang.String urlName)
           
 java.lang.String getRootUrl(hudson.tasks.test.TestObject testObject, hudson.tasks.junit.TestAction testAction)
           
 int getSkipCount()
          Gets the total number of skipped tests
 TestResult getSuiteTestResultGroup(java.lang.String suiteName)
           
 java.lang.Object getTarget()
           
static java.util.List<hudson.tasks.junit.TestAction> getTestActions(hudson.tasks.test.TestObject testObject, hudson.tasks.test.AbstractTestResultAction<?> testResultAction)
           
 int getTotalCount()
          Gets the total number of tests.
 java.lang.Object readResolve()
          Bring this object into an internally-consistent state after deserializing it.
 void setData(java.util.List<SuiteGroupResultAction.Data> testData)
           
 void setDescription(hudson.tasks.test.TestObject testObject, java.lang.String s)
           
 
Methods inherited from class hudson.tasks.test.AbstractTestResultAction
doGraph, doGraphMap, findCorrespondingResult, findPreviousCorresponding, getApi, getBuildHealth, getDescription, getFailedTests, getFailureDiffString, getIconFileName, getPreviousResult, getTestResultPath, getUrlName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuiteGroupResultAction

public SuiteGroupResultAction(hudson.model.AbstractBuild<?,?> owner,
                              JUnitSummaryInfo summary,
                              java.lang.String moduleNames,
                              hudson.model.BuildListener listener)
Method Detail

getTarget

public java.lang.Object getTarget()
Specified by:
getTarget in interface org.kohsuke.stapler.StaplerProxy

getFailCount

public int getFailCount()
Gets the number of failed tests.

Specified by:
getFailCount in class hudson.tasks.test.AbstractTestResultAction<SuiteGroupResultAction>

getSkipCount

public int getSkipCount()
Gets the total number of skipped tests

Overrides:
getSkipCount in class hudson.tasks.test.AbstractTestResultAction<SuiteGroupResultAction>
Returns:

getTotalCount

public int getTotalCount()
Gets the total number of tests.

Specified by:
getTotalCount in class hudson.tasks.test.AbstractTestResultAction<SuiteGroupResultAction>

getActions

public java.util.List<hudson.tasks.junit.TestAction> getActions(hudson.tasks.test.TestObject object)

setData

public void setData(java.util.List<SuiteGroupResultAction.Data> testData)

getResult

public SuiteGroupResult getResult()
Get the result that this action represents. If necessary, the result will be loaded from disk.

Specified by:
getResult in class hudson.tasks.test.AbstractTestResultAction<SuiteGroupResultAction>
Returns:

getResultAsSuiteGroupResult

public SuiteGroupResult getResultAsSuiteGroupResult()
This convenience method is what getResult() should have been, but with a specified return type.

Returns:

getSuiteTestResultGroup

public TestResult getSuiteTestResultGroup(java.lang.String suiteName)

setDescription

public void setDescription(hudson.tasks.test.TestObject testObject,
                           java.lang.String s)
Overrides:
setDescription in class hudson.tasks.test.AbstractTestResultAction<SuiteGroupResultAction>

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject
Overrides:
getDisplayName in class hudson.tasks.test.AbstractTestResultAction<SuiteGroupResultAction>

getRootUrl

public java.lang.String getRootUrl(hudson.tasks.test.TestObject testObject,
                                   hudson.tasks.junit.TestAction testAction)

getRootUrl

public java.lang.String getRootUrl(hudson.tasks.test.TestObject testObject,
                                   java.lang.String urlName)

getModuleNames

public java.lang.String getModuleNames()

readResolve

public java.lang.Object readResolve()
Bring this object into an internally-consistent state after deserializing it. For a MetaLabeledTestResultGroupAction , we don't have to do anything, because the WeakReference handles loading the actual test result data from disk when it is requested. The only case where we have something to do here is if this object was serialized with the test result data inline, rather than in a separate file. If the data was inline, we do a little dance to move the data into a separate file.

Overrides:
readResolve in class hudson.tasks.test.AbstractTestResultAction<SuiteGroupResultAction>
Returns:

getTestActions

public static java.util.List<hudson.tasks.junit.TestAction> getTestActions(hudson.tasks.test.TestObject testObject,
                                                                           hudson.tasks.test.AbstractTestResultAction<?> testResultAction)


Copyright © 2004-2012. All Rights Reserved.