@Entity public class TestCaseResultImpl extends HibernateBambooEntityObject implements TestCaseResult
Constructor and Description |
---|
TestCaseResultImpl() |
TestCaseResultImpl(TestCase testCase,
long duration,
TestState state) |
TestCaseResultImpl(TestCase testCase,
long duration,
TestState state,
@Nullable List<TestCaseResultError> testCaseResultErrors) |
TestCaseResultImpl(TestCase testCase,
long duration,
TestState state,
@Nullable List<TestCaseResultError> testCaseResultErrors,
List<String> quarantinedTests)
Deprecated.
since 5.7
|
TestCaseResultImpl(TestCase testCase,
long duration,
TestState state,
@Nullable List<TestCaseResultError> testCaseResultErrors,
Set<String> quarantinedTests) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TestCaseResult testCaseResult) |
boolean |
equals(Object o) |
TestDeltaState |
getDeltaState()
Return the Delta state for this test, e.g.
|
long |
getDuration()
How long the test took to run
|
@NotNull List<TestCaseResultError> |
getErrors() |
int |
getFailingSince()
If in delta state FAILING, return the build number for the build that this test started failing in.
|
@Nullable String |
getMethodName() |
@Nullable String |
getName() |
String |
getPrettyDuration() |
TestState |
getState()
Get the state of this test run, e.g.
|
TestCase |
getTestCase() |
TestClassResult |
getTestClassResult() |
int |
hashCode() |
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, setId
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
setId
getId
public TestCaseResultImpl()
public TestCaseResultImpl(TestCase testCase, long duration, TestState state, @Nullable @Nullable List<TestCaseResultError> testCaseResultErrors)
@Deprecated public TestCaseResultImpl(TestCase testCase, long duration, TestState state, @Nullable @Nullable List<TestCaseResultError> testCaseResultErrors, List<String> quarantinedTests)
@Nullable public @Nullable String getName()
getName
in interface TestCaseResult
getName
in interface NameProvider
@Nullable public @Nullable String getMethodName()
getMethodName
in interface TestCaseResult
public String getPrettyDuration()
getPrettyDuration
in interface TestCaseResult
public TestCase getTestCase()
getTestCase
in interface TestCaseResult
TestCase
this result belongs topublic void setTestCase(TestCase testCase)
public long getDuration()
TestCaseResult
getDuration
in interface TestCaseResult
public void setDuration(long duration)
public TestClassResult getTestClassResult()
getTestClassResult
in interface TestCaseResult
public void setTestClassResult(TestClassResult testClassResult)
TestCaseResult
setTestClassResult
in interface TestCaseResult
testClassResult
- this test result belongs to@NotNull public @NotNull List<TestCaseResultError> getErrors()
getErrors
in interface TestCaseResult
public TestState getState()
TestCaseResult
getState
in interface TestCaseResult
public void setState(TestState state)
public TestDeltaState getDeltaState()
TestCaseResult
getDeltaState
in interface TestCaseResult
public void setDeltaState(TestDeltaState testDeltaState)
TestCaseResult
setDeltaState
in interface TestCaseResult
testDeltaState
- - the delta state for this testpublic int getFailingSince()
TestCaseResult
getFailingSince
in interface TestCaseResult
public void setFailingSince(int buildNumber)
TestCaseResult
setFailingSince
in interface TestCaseResult
buildNumber
- that the test has been failing sincepublic boolean equals(Object o)
equals
in class com.atlassian.core.bean.EntityObject
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
public int compareTo(TestCaseResult testCaseResult)
compareTo
in interface Comparable<TestCaseResult>
public boolean isQuarantined()
TestCaseResult
isQuarantined
in interface TestCaseResult
public void setQuarantined(boolean quarantined)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.