hudson.plugins.labeledgroupedtests
Class MetaLabeledTestResultGroupAction

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

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

User: Benjamin Shine bshine Date: Oct 21, 2009 Time: 2:39:57 PM


Field Summary
static java.lang.String RESULT_DATA_FILENAME
           
protected  MetaLabeledTestResultGroup resultGroup
          Deprecated. use resultGroupReference instead.
 
Fields inherited from class hudson.tasks.test.AbstractTestResultAction
owner
 
Constructor Summary
MetaLabeledTestResultGroupAction(hudson.model.AbstractBuild owner, MetaLabeledTestResultGroup r, hudson.model.BuildListener listener)
           
 
Method Summary
 java.lang.String getDescription(hudson.tasks.test.TestObject testObject)
           
 java.lang.String getDisplayName()
           
 int getFailCount()
          Gets the number of failed tests.
 LabeledTestResultGroup getLabeledTestResultGroup(java.lang.String label)
           
 MetaLabeledTestResultGroup getResult()
          Get the result that this action represents.
 MetaLabeledTestResultGroup getResultAsTestResultGroup()
          This convenience method is what getResult() should have been, but with a specified return type.
 int getSkipCount()
          Gets the total number of skipped tests
 java.lang.Object getTarget()
           
 int getTotalCount()
          Gets the total number of tests.
 java.lang.Object readResolve()
          Bring this object into an internally-consistent state after deserializing it.
 void setDescription(hudson.tasks.test.TestObject testObject, java.lang.String s)
           
 void setResult(MetaLabeledTestResultGroup r, hudson.model.BuildListener listener)
          Store the data to a separate file, and update our cached values.
 
Methods inherited from class hudson.tasks.test.AbstractTestResultAction
doGraph, doGraphMap, findCorrespondingResult, findPreviousCorresponding, getApi, getBuildHealth, getFailedTests, getFailureDiffString, getIconFileName, getPreviousResult, getTestResultPath, getUrlName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESULT_DATA_FILENAME

public static final java.lang.String RESULT_DATA_FILENAME
See Also:
Constant Field Values

resultGroup

protected MetaLabeledTestResultGroup resultGroup
Deprecated. use resultGroupReference instead.
Constructor Detail

MetaLabeledTestResultGroupAction

public MetaLabeledTestResultGroupAction(hudson.model.AbstractBuild owner,
                                        MetaLabeledTestResultGroup r,
                                        hudson.model.BuildListener listener)
Method Detail

setResult

public void setResult(MetaLabeledTestResultGroup r,
                      hudson.model.BuildListener listener)
Store the data to a separate file, and update our cached values.


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<MetaLabeledTestResultGroupAction>

getSkipCount

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

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

getTotalCount

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

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

getResult

public MetaLabeledTestResultGroup 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<MetaLabeledTestResultGroupAction>
Returns:

getResultAsTestResultGroup

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

Returns:

getLabeledTestResultGroup

public LabeledTestResultGroup getLabeledTestResultGroup(java.lang.String label)

getDescription

public java.lang.String getDescription(hudson.tasks.test.TestObject testObject)
Overrides:
getDescription in class hudson.tasks.test.AbstractTestResultAction<MetaLabeledTestResultGroupAction>

setDescription

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

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<MetaLabeledTestResultGroupAction>

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<MetaLabeledTestResultGroupAction>
Returns:


Copyright © 2015 Yahoo!, Inc.. All Rights Reserved.