public class TestCaseInfo extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
TestCaseInfo.Factory |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SLICE_ID_OFFSET |
| Constructor and Description |
|---|
TestCaseInfo(Integer id,
FullClassInfo runtimeType,
FullMethodInfo sourceMethod,
String runtimeTestName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getClassName() |
double |
getDuration()
Return duration of the test in seconds
|
long |
getEndTime() |
String |
getFailFullMessage() |
String |
getFailMessage() |
String |
getFailType() |
Integer |
getId() |
String |
getKey() |
String |
getQualifiedName() |
FullClassInfo |
getRuntimeType() |
String |
getRuntimeTypeName() |
FullMethodInfo |
getSourceMethod() |
String |
getSourceMethodName() |
StackTraceInfo |
getStackTrace() |
long |
getStartTime() |
String |
getTestName()
Returns name of the test.
|
int |
hashCode() |
boolean |
isError() |
boolean |
isFailure() |
boolean |
isHasResult() |
boolean |
isResolved() |
boolean |
isSuccess() |
static String |
makeKey(String runtimeTypeName,
String sourceMethodName,
String runtimeTestName,
long startTime) |
Object |
readResolve() |
boolean |
resolve(FullProjectInfo project)
"resolve" this instance against the given project.
|
void |
setDuration(double duration)
Manually set how long test was executing.
|
void |
setEndTime(long endTime) |
void |
setError(boolean error) |
void |
setFailFullMessage(String failFullMessage) |
void |
setFailMessage(String failMessage) |
void |
setFailType(String failType) |
void |
setFailure(boolean failure) |
void |
setHasResult(boolean hasResult) |
void |
setId(Integer id) |
void |
setStartTime(long startTime) |
String |
toString() |
public static final int DEFAULT_SLICE_ID_OFFSET
public TestCaseInfo(Integer id, FullClassInfo runtimeType, FullMethodInfo sourceMethod, @Nullable String runtimeTestName)
public Integer getId()
public void setId(Integer id)
public boolean isResolved()
public boolean resolve(FullProjectInfo project)
project - the project to resolve againstpublic Object readResolve() throws ObjectStreamException
ObjectStreamExceptionpublic String getKey()
public static String makeKey(String runtimeTypeName, String sourceMethodName, String runtimeTestName, long startTime)
public String getClassName()
public String getTestName()
public double getDuration()
public boolean isError()
public boolean isHasResult()
public void setHasResult(boolean hasResult)
public void setDuration(double duration)
public void setError(boolean error)
public boolean isFailure()
public void setFailure(boolean failure)
public boolean isSuccess()
public String getFailMessage()
public void setFailMessage(String failMessage)
public String getFailType()
public void setFailType(String failType)
public String getFailFullMessage()
public void setFailFullMessage(String failFullMessage)
@Nullable public StackTraceInfo getStackTrace()
@Nullable public FullClassInfo getRuntimeType()
@Nullable public FullMethodInfo getSourceMethod()
@Nullable public String getQualifiedName()
@Nullable public String getRuntimeTypeName()
@Nullable public String getSourceMethodName()
public long getStartTime()
public void setStartTime(long startTime)
public long getEndTime()
public void setEndTime(long endTime)
Copyright © 2024 OpenClover.org. All rights reserved.