edu.rice.cs.drjava.model.junit
Class JUnitErrorModel

java.lang.Object
  extended by edu.rice.cs.drjava.model.compiler.CompilerErrorModel
      extended by edu.rice.cs.drjava.model.junit.JUnitErrorModel

public class JUnitErrorModel
extends CompilerErrorModel

Contains the JUnitErrors for a particular file after a test has ended.

Version:
$Id: JUnitErrorModel.java 5439 2011-08-11 17:13:04Z rcartwright $

Field Summary
private  boolean _testsHaveRun
           
 
Constructor Summary
JUnitErrorModel(JUnitError[] errors, GlobalModel model, boolean testsHaveRun)
          Constructs a new JUnitErrorModel to be maintained by a particular OpenDefinitionsDocument.
 
Method Summary
 boolean haveTestsRun()
          Returns whether tests have been run before.
 
Methods inherited from class edu.rice.cs.drjava.model.compiler.CompilerErrorModel
getError, getErrorAtOffset, getNumCompErrors, getNumErrors, getNumWarnings, getPosition, hasErrorsWithPositions, hasOnlyWarnings, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_testsHaveRun

private volatile boolean _testsHaveRun
Constructor Detail

JUnitErrorModel

public JUnitErrorModel(JUnitError[] errors,
                       GlobalModel model,
                       boolean testsHaveRun)
Constructs a new JUnitErrorModel to be maintained by a particular OpenDefinitionsDocument.

Parameters:
errors - the errors this JUnitErrorModel represents
model - the model to load documents form for finding error positions
testsHaveRun - whether or not the JUnit tests have completed
Method Detail

haveTestsRun

public boolean haveTestsRun()
Returns whether tests have been run before.