public class TestCaseResultImpl extends BambooEntityObject implements TestCaseResult
id| Constructor and Description | 
|---|
TestCaseResultImpl()  | 
TestCaseResultImpl(TestCase testCase,
                  long duration,
                  TestState state)  | 
TestCaseResultImpl(TestCase testCase,
                  long duration,
                  TestState state,
                  List<TestCaseResultError> testCaseResultErrors)  | 
TestCaseResultImpl(TestCase testCase,
                  long duration,
                  TestState state,
                  List<TestCaseResultError> testCaseResultErrors,
                  List<String> quarantinedTests)
Deprecated. 
 
since 5.7 
 | 
TestCaseResultImpl(TestCase testCase,
                  long duration,
                  TestState state,
                  List<TestCaseResultError> testCaseResultErrors,
                  Set<String> quarantinedTests)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
compareTo(TestCaseResult testCaseResult)  | 
boolean | 
equals(Object o)
This method needs to be here in order to use proper id 
 | 
TestDeltaState | 
getDeltaState()
Return the Delta state for this test, e.g. 
 | 
long | 
getDuration()
How long the test took to run 
 | 
List<TestCaseResultError> | 
getErrors()  | 
int | 
getFailingSince()
If in delta state FAILING, return the build number for the build that this test started failing in. 
 | 
String | 
getMethodName()  | 
String | 
getName()  | 
String | 
getPrettyDuration()  | 
TestState | 
getState()
Get the state of this test run, e.g. 
 | 
TestCase | 
getTestCase()  | 
TestClassResult | 
getTestClassResult()  | 
int | 
hashCode()
This method needs to be here in order to use proper id 
 | 
boolean | 
isQuarantined()
Check if the test case result was quarantined 
 | 
void | 
setDeltaState(TestDeltaState testDeltaState)
Set the delta state for this test (the difference between the state of this test and the state in the last build) 
 | 
void | 
setDuration(long duration)  | 
void | 
setFailingSince(int buildNumber)
Set the build number for the build that this test started failing in. 
 | 
void | 
setQuarantined(boolean quarantined)  | 
void | 
setState(TestState state)  | 
void | 
setTestCase(TestCase testCase)  | 
void | 
setTestClassResult(TestClassResult testClassResult)
Set the TestClassResult this test result belongs to 
 | 
getId, setIdclone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDatefinalize, getClass, notify, notifyAll, toString, wait, wait, waitsetIdgetIdpublic TestCaseResultImpl()
public TestCaseResultImpl(TestCase testCase, long duration, TestState state, @Nullable List<TestCaseResultError> testCaseResultErrors)
@Deprecated public TestCaseResultImpl(TestCase testCase, long duration, TestState state, @Nullable List<TestCaseResultError> testCaseResultErrors, List<String> quarantinedTests)
@Nullable public String getName()
getName in interface TestCaseResultgetName in interface NameProvider@Nullable public String getMethodName()
getMethodName in interface TestCaseResultpublic String getPrettyDuration()
getPrettyDuration in interface TestCaseResultpublic TestCase getTestCase()
getTestCase in interface TestCaseResultTestCase this result belongs topublic void setTestCase(TestCase testCase)
public long getDuration()
TestCaseResultgetDuration in interface TestCaseResultpublic void setDuration(long duration)
public TestClassResult getTestClassResult()
getTestClassResult in interface TestCaseResultpublic void setTestClassResult(TestClassResult testClassResult)
TestCaseResultsetTestClassResult in interface TestCaseResulttestClassResult - this test result belongs to@NotNull public List<TestCaseResultError> getErrors()
getErrors in interface TestCaseResultpublic TestState getState()
TestCaseResultgetState in interface TestCaseResultpublic void setState(TestState state)
public TestDeltaState getDeltaState()
TestCaseResultgetDeltaState in interface TestCaseResultpublic void setDeltaState(TestDeltaState testDeltaState)
TestCaseResultsetDeltaState in interface TestCaseResulttestDeltaState - - the delta state for this testpublic int getFailingSince()
TestCaseResultgetFailingSince in interface TestCaseResultpublic void setFailingSince(int buildNumber)
TestCaseResultsetFailingSince in interface TestCaseResultbuildNumber - that the test has been failing sincepublic int hashCode()
BambooEntityObjecthashCode in class BambooEntityObjectpublic boolean equals(Object o)
BambooEntityObjectequals in class BambooEntityObjectpublic int compareTo(TestCaseResult testCaseResult)
compareTo in interface Comparable<TestCaseResult>public boolean isQuarantined()
TestCaseResultisQuarantined in interface TestCaseResultpublic void setQuarantined(boolean quarantined)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.