|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.TestResult | +--edu.rice.cs.drjava.model.junit.JUnitError
A class to represent JUnit errors. Having this class allows DrJava to make the errors as legible as possible.
Field Summary | |
private String |
_fileName
|
private boolean |
_isError
|
private int |
_lineNumber
zero-based line number. |
private String |
_message
|
private String |
_stackTrace
|
private int |
_startColumn
zero-based column number. |
private String |
_test
|
Fields inherited from class junit.framework.TestResult |
fErrors, fFailures, fListeners, fRunTests, fStop |
Constructor Summary | |
JUnitError(String fileName,
int lineNumber,
int startColumn,
String message,
boolean isError,
String test,
String stackTrace)
Constructor. |
Method Summary | |
private int |
compareByPosition(JUnitError other)
Compares this error with the given one, based first on line number, and then by column. |
int |
compareTo(Object o)
Compares by file, then by line, then by column. |
String |
fileName()
Gets the full name of the file. |
boolean |
isWarning()
Determines if the error is a warning. |
int |
lineNumber()
Gets the line number of the error. |
String |
message()
Gets the error message. |
String |
stackTrace()
|
int |
startColumn()
Gets the column where the error begins. |
String |
testName()
Gets the test name |
String |
toString()
Gets a String representation of the error. |
Methods inherited from class junit.framework.TestResult |
addError, addFailure, addListener, cloneListeners, endTest, errorCount, errors, failureCount, failures, removeListener, run, runCount, runProtected, runTests, shouldStop, startTest, stop, testErrors, testFailures, wasSuccessful |
Methods inherited from class java.lang.Object |
|
Field Detail |
private String _fileName
private int _lineNumber
private int _startColumn
private String _message
private String _test
private boolean _isError
private String _stackTrace
Constructor Detail |
public JUnitError(String fileName, int lineNumber, int startColumn, String message, boolean isError, String test, String stackTrace)
File
- file the file where the error occurredint
- lineNumber the line number of the errorint
- startColumn the starting column of the errorString
- message the error messageboolean
- isError true if the error is a warningMethod Detail |
public String toString()
toString
in class Object
public String fileName()
public int lineNumber()
public int startColumn()
public String message()
public String testName()
public String stackTrace()
public boolean isWarning()
public int compareTo(Object o)
compareTo
in interface Comparable
private int compareByPosition(JUnitError other)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |