package bluej.debugger.jdi;
import bluej.debugger.SourceLocation;
import threadchecker.OnThread;
import threadchecker.Tag;
| Represents the result of running a single test method.
|
@OnThread(Tag.Any)
public class JdiTestResultError
extends JdiTestResult{
SourceLocation failPoint;
JdiTestResultError(String className, String methodName, String exceptionMsg, String traceMsg, SourceLocation failPoint, int runTimeMs)
{
super(className, methodName, runTimeMs);
this.exceptionMsg = exceptionMsg;
if (traceMsg != null) {
this.traceMsg = getFilteredTrace(traceMsg);
}
else {
this.traceMsg = null;
}
this.failPoint = failPoint;
}
@Override
public String getExceptionMessage()
{
return exceptionMsg;
}
@Override
public String getTrace()
{
return traceMsg;
}
@Override
public SourceLocation getExceptionLocation()
{
return failPoint;
}
@Override
public boolean isError()
{
return true;
}
@Override
public boolean isFailure()
{
return false;
}
@Override
public boolean isSuccess()
{
return false;
}
}
top,
use,
map,
class JdiTestResultError
. getExceptionMessage
. getTrace
. getExceptionLocation
. isError
. isFailure
. isSuccess
78 neLoCode
+ 1 LoComm