|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.tasks.junit.TestObject
hudson.tasks.test.TestObject
hudson.tasks.test.TestResult
hudson.tasks.test.SimpleCaseResult
public class SimpleCaseResult
The simplest possible case result, with no language ties. Acts as if it passed, has no children, and has no failed or skipped tests.
| Field Summary | |
|---|---|
protected float |
duration
|
static List<TestAction> |
EMPTY_ACTION_LIST
An empty list of actions, useful for tests |
protected List<SimpleCaseResult> |
listOnlyContainingThisObject
|
protected AbstractTestResultAction |
parentAction
|
| Constructor Summary | |
|---|---|
SimpleCaseResult()
|
|
SimpleCaseResult(float duration)
|
|
| Method Summary | |
|---|---|
TestResult |
findCorrespondingResult(String id)
Find the test result corresponding to the one identified by id>
withint this test result. |
String |
getDisplayName()
|
float |
getDuration()
Time took to run this test. |
int |
getFailCount()
Gets the total number of failed tests. |
Collection<? extends TestResult> |
getFailedTests()
Gets the "children" of this test result that failed |
String |
getName()
Gets the name of this object. |
AbstractBuild<?,?> |
getOwner()
|
TestObject |
getParent()
Reverse pointer of TabulatedResult.getChildren(). |
AbstractTestResultAction |
getParentAction()
Returns the action that points to the top level test result includes this test result. |
int |
getPassCount()
Gets the total number of passed tests. |
Collection<? extends TestResult> |
getPassedTests()
Gets the "children" of this test result that passed |
int |
getSkipCount()
Gets the total number of skipped tests. |
Collection<? extends TestResult> |
getSkippedTests()
Gets the "children" of this test result that were skipped |
List<TestAction> |
getTestActions()
Get a list of all TestActions associated with this TestObject. |
String |
getTitle()
Gets the human readable title of this result object. |
boolean |
isFailed()
Returns true iff this test failed. |
boolean |
isPassed()
Let's pretend that our trivial test result always passes. |
boolean |
isSkipped()
Tests whether the test was skipped or not. |
void |
setParentAction(AbstractTestResultAction parentAction)
Sets the parent action, which means the action that binds this particular case result to a build. |
| Methods inherited from class hudson.tasks.test.TestResult |
|---|
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getPreviousResult, getResultInBuild, getStderr, getStdout, setParent, tally, toPrettyString |
| Methods inherited from class hudson.tasks.test.TestObject |
|---|
doSubmitDescription, getApi, getDescription, getDurationString, getDynamic, getHistory, getId, getRelativePathFrom, getSafeName, getSearchUrl, getTestAction, getTestResult, getTestResultAction, 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 |
| Field Detail |
|---|
protected AbstractTestResultAction parentAction
protected final List<SimpleCaseResult> listOnlyContainingThisObject
protected float duration
public static final List<TestAction> EMPTY_ACTION_LIST
| Constructor Detail |
|---|
public SimpleCaseResult(float duration)
public SimpleCaseResult()
| Method Detail |
|---|
public void setParentAction(AbstractTestResultAction parentAction)
setParentAction in class TestResultparentAction - public AbstractTestResultAction getParentAction()
TestResult
getParentAction in class TestResultpublic TestObject getParent()
TestObjectTabulatedResult.getChildren().
getParent in class TestObjectpublic TestResult findCorrespondingResult(String id)
TestObjectid>
withint this test result.
findCorrespondingResult in class TestObjectid - The path to the original test result
public Collection<? extends TestResult> getFailedTests()
getFailedTests in class TestResultpublic Collection<? extends TestResult> getPassedTests()
getPassedTests in class TestResultpublic Collection<? extends TestResult> getSkippedTests()
getSkippedTests in class TestResultpublic boolean isPassed()
isPassed in class TestResultpublic boolean isSkipped()
public boolean isFailed()
public float getDuration()
getDuration in class TestResultpublic String getName()
getName in class TestObjectpublic int getPassCount()
getPassCount in class TestResultpublic int getFailCount()
getFailCount in class TestResultpublic int getSkipCount()
getSkipCount in class TestResultpublic String getTitle()
getTitle in class TestResultpublic String getDisplayName()
public AbstractBuild<?,?> getOwner()
getOwner in class TestObjectpublic List<TestAction> getTestActions()
TestObject
getTestActions in class TestObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||