|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
edu.rice.cs.drjava.DrJavaTestCase
edu.rice.cs.drjava.model.compiler.CompilerErrorModelTest
public final class CompilerErrorModelTest
Tests the CompilerErrorModel.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class junit.framework.TestCase |
|---|
TestCase.WrappedException |
| Field Summary | |
|---|---|
private DJError[] |
errors
|
private java.io.File[] |
files
|
private TestDocGetter |
getter
|
private CompilerErrorModel |
model
|
private java.lang.String[] |
texts
|
| Constructor Summary | |
|---|---|
CompilerErrorModelTest()
|
|
| Method Summary | |
|---|---|
private void |
fullSetup()
Extra setup for test cases with several documents. |
private void |
setupDoc()
Setup for test cases with one document. |
private void |
setupDocs()
Setup for test cases with several documents. |
void |
testConstructDoclessErrors()
Tests CompilerErrorModel setup code with only errors without files. |
void |
testConstructManyDocsWithBoth()
Tests CompilerErrorModel setup code with several files and errors both with and without line numbers. |
void |
testConstructManyDocsWithLineNums()
Tests CompilerErrorModel setup code with several files and only errors with line numbers. |
void |
testConstructManyDocsWithoutLineNums()
Tests CompilerErrorModel setup code with several files and only errors without line numbers. |
void |
testConstructNoErrors()
Tests CompilerErrorModel setup code with no compiler errors. |
void |
testConstructOneDocWithBoth()
Tests CompilerErrorModel setup code with one file and errors both with and without line numbers. |
void |
testConstructOneDocWithLineNums()
Tests CompilerErrorModel setup code with one file and only errors with line numbers. |
void |
testConstructOneDocWithoutLineNums()
Tests CompilerErrorModel setup code with one file and only errors without line numbers. |
void |
testConstructOnlyWarnings()
Tests CompilerErrorModel setup code with only warnings without files. |
void |
testErrorsInMultipleDocuments()
|
void |
testGetErrorAtOffset()
Tests CompilerErrorModel.getErrorAtOffset(int). |
void |
testGetPosition()
Tests CompilerErrorModel.getPosition(DJError). |
void |
testHasErrorsWithPositions()
Tests CompilerErrorModel.hasErrorsWithPositions(OpenDefinitionsDocument). |
| Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase |
|---|
setConfigSetting, setDocText, setUp, tearDown |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.io.File[] files
private java.lang.String[] texts
private TestDocGetter getter
private DJError[] errors
private CompilerErrorModel model
| Constructor Detail |
|---|
public CompilerErrorModelTest()
| Method Detail |
|---|
public void testConstructNoErrors()
public void testConstructOnlyWarnings()
public void testConstructDoclessErrors()
public void testConstructOneDocWithoutLineNums()
public void testConstructOneDocWithLineNums()
public void testConstructOneDocWithBoth()
public void testConstructManyDocsWithoutLineNums()
public void testConstructManyDocsWithLineNums()
public void testConstructManyDocsWithBoth()
public void testGetPosition()
public void testGetErrorAtOffset()
throws java.io.IOException,
OperationCanceledException
java.io.IOException
OperationCanceledException
public void testHasErrorsWithPositions()
throws java.io.IOException,
OperationCanceledException
java.io.IOException
OperationCanceledException
public void testErrorsInMultipleDocuments()
throws java.io.IOException,
OperationCanceledException
java.io.IOException
OperationCanceledExceptionprivate void setupDoc()
private void setupDocs()
private void fullSetup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||