hudson.tasks.junit
Class TestObject

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.tasks.junit.TestObject
All Implemented Interfaces:
ModelObject, SearchableModelObject, SearchItem, Serializable
Direct Known Subclasses:
TestObject

Deprecated. Use TestObject instead.

@ExportedBean
public abstract class TestObject
extends AbstractModelObject
implements Serializable

Stub of base class for all test result objects. The real implementation of the TestObject is in hudson.tasks.test.TestObject. This class simply defines abstract methods so that legacy code will continue to compile.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Constructor Summary
TestObject()
          Deprecated.  
 
Method Summary
abstract  Api getApi()
          Deprecated. Exposes this object through the remote API.
abstract  String getDescription()
          Deprecated.  
abstract  float getDuration()
          Deprecated. Time took to run this test.
abstract  String getDurationString()
          Deprecated. Returns the string representation of the getDuration(), in a human readable format.
abstract  int getFailCount()
          Deprecated. Gets the total number of failed tests.
abstract  History getHistory()
          Deprecated.  
abstract  String getId()
          Deprecated.  
abstract  String getName()
          Deprecated. Gets the name of this object.
abstract  AbstractBuild<?,?> getOwner()
          Deprecated.  
abstract  TestObject getParent()
          Deprecated.  
abstract  int getPassCount()
          Deprecated. Gets the total number of passed tests.
abstract  TestObject getPreviousResult()
          Deprecated. Gets the counter part of this TestObject in the previous run.
abstract  TestObject getResultInBuild(AbstractBuild<?,?> build)
          Deprecated.  
abstract  String getSafeName()
          Deprecated. Gets the version of getName() that's URL-safe.
abstract  String getSearchUrl()
          Deprecated. Returns the URL of this item relative to the parent SearchItem.
abstract  int getSkipCount()
          Deprecated. Gets the total number of skipped tests.
abstract
<T> T
getTestAction(Class<T> klazz)
          Deprecated.  
abstract  List<TestAction> getTestActions()
          Deprecated.  
abstract  TestResult getTestResult()
          Deprecated.  
abstract  AbstractTestResultAction getTestResultAction()
          Deprecated.  
abstract  int getTotalCount()
          Deprecated. Gets the total number of tests.
abstract  String getUrl()
          Deprecated. Returns url relative to TestResult
abstract  void setDescription(String description)
          Deprecated.  
 
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
 
Methods inherited from interface hudson.model.ModelObject
getDisplayName
 

Constructor Detail

TestObject

public TestObject()
Deprecated. 
Method Detail

getOwner

public abstract AbstractBuild<?,?> getOwner()
Deprecated. 

getParent

public abstract TestObject getParent()
Deprecated. 

getId

public abstract String getId()
Deprecated. 

getUrl

public abstract String getUrl()
Deprecated. 
Returns url relative to TestResult


getTestResult

public abstract TestResult getTestResult()
Deprecated. 

getTestResultAction

public abstract AbstractTestResultAction getTestResultAction()
Deprecated. 

getTestActions

public abstract List<TestAction> getTestActions()
Deprecated. 

getTestAction

public abstract <T> T getTestAction(Class<T> klazz)
Deprecated. 

getPreviousResult

public abstract TestObject getPreviousResult()
Deprecated. 
Gets the counter part of this TestObject in the previous run.

Returns:
null if no such counter part exists.

getResultInBuild

public abstract TestObject getResultInBuild(AbstractBuild<?,?> build)
Deprecated. 

getDuration

public abstract float getDuration()
Deprecated. 
Time took to run this test. In seconds.


getDurationString

public abstract String getDurationString()
Deprecated. 
Returns the string representation of the getDuration(), in a human readable format.


getDescription

public abstract String getDescription()
Deprecated. 

setDescription

public abstract void setDescription(String description)
Deprecated. 

getApi

public abstract Api getApi()
Deprecated. 
Exposes this object through the remote API.


getName

public abstract String getName()
Deprecated. 
Gets the name of this object.


getSafeName

public abstract String getSafeName()
Deprecated. 
Gets the version of getName() that's URL-safe.


getSearchUrl

public abstract String getSearchUrl()
Deprecated. 
Description copied from interface: SearchItem
Returns the URL of this item relative to the parent SearchItem.

Specified by:
getSearchUrl in interface SearchItem
Returns:
URL like "foo" or "foo/bar". The path can end with '/'. The path that starts with '/' will be interpreted as the absolute path (within the context path of Hudson.)

getPassCount

public abstract int getPassCount()
Deprecated. 
Gets the total number of passed tests.


getFailCount

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


getSkipCount

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


getTotalCount

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


getHistory

public abstract History getHistory()
Deprecated. 


Copyright © 2004-2013. All Rights Reserved.