Package hudson.tasks.junit
Class TestObject
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.tasks.junit.TestObject
-
- All Implemented Interfaces:
ModelObject
,SearchableModelObject
,SearchItem
,Serializable
- Direct Known Subclasses:
TestObject
@ExportedBean public abstract class TestObject extends AbstractModelObject implements Serializable
Deprecated.UseTestObject
instead.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
Constructors Constructor Description TestObject()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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 thegetDuration()
, 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.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 thisTestObject
in the previous run.TestObject
getResultInBuild(AbstractBuild<?,?> build)
Deprecated.TestObject
getResultInRun(Run<?,?> run)
Deprecated.Run<?,?>
getRun()
Deprecated.abstract String
getSafeName()
Deprecated.Gets the version ofgetName()
that's URL-safe.abstract String
getSearchUrl()
Deprecated.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 the URL of thisTestObject
, relative to the context root.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
-
-
-
-
Method Detail
-
getOwner
@Deprecated public AbstractBuild<?,?> getOwner()
Deprecated.
-
getRun
public Run<?,?> getRun()
Deprecated.- Returns:
- the run in which this test was executed.
- Since:
- 1.2-beta-1
-
getParent
public abstract TestObject getParent()
Deprecated.
-
getId
public abstract String getId()
Deprecated.
-
getUrl
public abstract String getUrl()
Deprecated.Returns the URL of thisTestObject
, relative to the context root.- Returns:
- String like "job/foo/32/testReport/junit/com.company/Class" with no trailing or leading slash.
-
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 thisTestObject
in the previous run.- Returns:
- null if no such counter part exists.
-
getResultInBuild
@Deprecated public TestObject getResultInBuild(AbstractBuild<?,?> build)
Deprecated.
-
getResultInRun
public TestObject getResultInRun(Run<?,?> run)
Deprecated.- Parameters:
run
- The run for which the run is requested.- Returns:
- the test result for the provided run.
- Since:
- 1.2-beta-1
-
getDuration
public abstract float getDuration()
Deprecated.Time took to run this test. In seconds.- Returns:
- the time in seconds the test ran.
-
getDurationString
public abstract String getDurationString()
Deprecated.Returns the string representation of thegetDuration()
, in a human readable format.- Returns:
- a string representation of
getDuration()
.
-
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.- Returns:
- the api for this test object.
-
getName
public abstract String getName()
Deprecated.Gets the name of this object.- Returns:
- the name of this object.
-
getSafeName
public abstract String getSafeName()
Deprecated.Gets the version ofgetName()
that's URL-safe.- Returns:
- the URL-safe name of this object.
-
getSearchUrl
public abstract String getSearchUrl()
Deprecated.- Specified by:
getSearchUrl
in interfaceSearchItem
-
getPassCount
public abstract int getPassCount()
Deprecated.Gets the total number of passed tests.- Returns:
- the total number of passed tests.
-
getFailCount
public abstract int getFailCount()
Deprecated.Gets the total number of failed tests.- Returns:
- the total number of failed tests.
-
getSkipCount
public abstract int getSkipCount()
Deprecated.Gets the total number of skipped tests.- Returns:
- the total number of skipped tests.
-
getTotalCount
public abstract int getTotalCount()
Deprecated.Gets the total number of tests.- Returns:
- the total number of tests.
-
getHistory
public abstract History getHistory()
Deprecated.
-
-