|
||||||||||
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.
Constructor Summary | |
---|---|
JUnitError(File file,
int lineNumber,
int startColumn,
String message,
boolean isWarning,
String test,
String className,
String 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 |
stackTrace()
All JUnit errors are Throwables that have been thrown, so all have a stack trace |
String |
testName()
Gets the test name |
Methods inherited from class edu.rice.cs.drjava.model.DJError |
---|
compareTo, file, fileName, getFileMessage, getLineMessage, hasNoLocation, isWarning, lineNumber, message, startColumn, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JUnitError(File file, int lineNumber, int startColumn, String message, boolean isWarning, String test, String className, String 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 failedpublic JUnitError(String message, boolean isWarning, String test)
message
- the error messageisWarning
- true if the error is a warningtest
- the name of the test that failedMethod Detail |
---|
public String testName()
public String className()
public String stackTrace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |