|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.DJError
edu.rice.cs.drjava.model.junit.JUnitError
public class JUnitError
A class to represent JUnit errors. This class enables DrJava to highlight the exact error text.
| Field Summary | |
|---|---|
private String |
_className
|
private String |
_exception
|
private StackTraceElement[] |
_stackTrace
|
private String |
_test
|
| Constructor Summary | |
|---|---|
JUnitError(File file,
int lineNumber,
int startColumn,
String message,
boolean isWarning,
String test,
String className,
String exception,
StackTraceElement[] stackTrace)
Constructor. |
|
JUnitError(String message,
boolean isWarning,
String test)
Constructor for an error with no associated location. |
|
| Method Summary | |
|---|---|
String |
className()
Gets the class name |
String |
exception()
All JUnit errors are Throwables that have been thrown, so all have a stack trace |
void |
setStackTrace(StackTraceElement[] stes)
Set the array of stack trace elements. |
StackTraceElement[] |
stackTrace()
Return the array of stack trace elements. |
String |
testName()
Gets the test name |
String |
toString()
Gets a String representation of the error. |
| Methods inherited from class edu.rice.cs.drjava.model.DJError |
|---|
compareTo, file, fileName, getFileMessage, getLineMessage, hasNoLocation, isWarning, lineNumber, message, setLineNumber, startColumn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private volatile String _test
private volatile String _className
private volatile String _exception
private volatile StackTraceElement[] _stackTrace
| Constructor Detail |
|---|
public JUnitError(File file,
int lineNumber,
int startColumn,
String message,
boolean isWarning,
String test,
String className,
String exception,
StackTraceElement[] stackTrace)
file - the file where the error occurredlineNumber - the line number of the errorstartColumn - the starting column of the errormessage - the error messageisWarning - true if the error is a warningtest - the name of the test that failed
public JUnitError(String message,
boolean isWarning,
String test)
message - the error messageisWarning - true if the error is a warningtest - the name of the test that failed| Method Detail |
|---|
public String testName()
public String className()
public String exception()
public StackTraceElement[] stackTrace()
public void setStackTrace(StackTraceElement[] stes)
public String toString()
DJError
toString in class DJError
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||