edu.rice.cs.drjava.model.repl
Class InteractionsModelErrorTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
edu.rice.cs.drjava.DrJavaTestCase
edu.rice.cs.drjava.model.MultiThreadedTestCase
edu.rice.cs.drjava.model.GlobalModelTestCase
edu.rice.cs.drjava.model.repl.InteractionsModelErrorTest
- All Implemented Interfaces:
- Test
public final class InteractionsModelErrorTest
- extends GlobalModelTestCase
Tests errors in an InteractionsModel.
- Version:
- $Id: InteractionsModelErrorTest.java 5236 2010-04-27 01:43:36Z mgricken $
| Nested classes/interfaces inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase |
GlobalModelTestCase.CancelingSelector, GlobalModelTestCase.CompileShouldFailListener, GlobalModelTestCase.CompileShouldSucceedListener, GlobalModelTestCase.FileMovedWarningException, GlobalModelTestCase.FileSelector, GlobalModelTestCase.InteractionListener, GlobalModelTestCase.JUnitNonTestListener, GlobalModelTestCase.JUnitTestListener, GlobalModelTestCase.OpenWarningException, GlobalModelTestCase.OverwriteException, GlobalModelTestCase.SaveCopyFileSelector, GlobalModelTestCase.TestGlobalModel, GlobalModelTestCase.TestListener, GlobalModelTestCase.WarningFileSelector |
| Fields inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase |
_doc, _interactionsController, _model, _tempDir, BAR_TEXT, BAZ_TEXT, FOO_MISSING_CLOSE_TEXT, FOO_PACKAGE_AFTER_IMPORT, FOO_PACKAGE_AS_FIELD, FOO_PACKAGE_AS_FIELD_2, FOO_PACKAGE_AS_PART_OF_FIELD, FOO_PACKAGE_INSIDE_CLASS, FOO_TEXT |
| Methods inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase |
assertCompileErrorsPresent, assertCompileErrorsPresent, assertContents, assertInteractionsContains, assertInteractionsDoesNotContain, assertInteractionsDoesNotMatch, assertInteractionsMatches, assertLength, assertModified, assertNumOpenDocs, changeDocumentText, classForJava, createFile, doCompile, doCompile, getCompilerErrorString, getInteractionsText, interpret, interpretIgnoreResult, safeLoadHistory, safeSaveHistory, saveAllFiles, saveFile, saveFileAs, saveFileCopy, setUp, setupDocument, tearDown, tempDirectory, tempFile, tempFile, testStartCompile, writeToNewTempFile |
| 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 |
UNARY_FUN_NON_PUBLIC_INTERFACE_TEXT
protected static final String UNARY_FUN_NON_PUBLIC_INTERFACE_TEXT
- See Also:
- Constant Field Values
UNARY_FUN_PUBLIC_INTERFACE_TEXT
protected static final String UNARY_FUN_PUBLIC_INTERFACE_TEXT
- See Also:
- Constant Field Values
UNARY_FUN_NON_PUBLIC_CLASS_TEXT
protected static final String UNARY_FUN_NON_PUBLIC_CLASS_TEXT
- See Also:
- Constant Field Values
UNARY_FUN_PUBLIC_CLASS_TEXT
protected static final String UNARY_FUN_PUBLIC_CLASS_TEXT
- See Also:
- Constant Field Values
CLASS_IN_PACKAGE_CLASS_TEXT
protected static final String CLASS_IN_PACKAGE_CLASS_TEXT
- See Also:
- Constant Field Values
_interpreterOptions
private volatile InteractionsPaneOptions _interpreterOptions
_interpreter
private volatile Interpreter _interpreter
_classPathManager
private volatile ClassPathManager _classPathManager
_interpreterLoader
private volatile ClassLoader _interpreterLoader
_log
private static Log _log
InteractionsModelErrorTest
public InteractionsModelErrorTest()
tester
private void tester(Pair<String,Object>[] cases)
throws InterpreterException
- Asserts that the results of interpreting the first of each
Pair is equal to the second.
- Parameters:
cases - an array of Pairs
- Throws:
InterpreterException
interpretDirectly
private Object interpretDirectly(String s)
throws InterpreterException
- Throws:
InterpreterException
_name
protected String _name()
testInterpretExtendNonPublic
public void testInterpretExtendNonPublic()
throws BadLocationException,
IOException,
InterruptedException,
InterpreterException
- Tests that we get the correct 'cannot access its superinterface' error for non-public classes.
- Throws:
BadLocationException
IOException
InterruptedException
InterpreterException
testInterpretExtendPublic
public void testInterpretExtendPublic()
throws BadLocationException,
IOException,
InterruptedException,
InterpreterException
- Tests that we don't get an error for public classes.
- Throws:
BadLocationException
IOException
InterruptedException
InterpreterException
testInterpretExtendNonPublicClass
public void testInterpretExtendNonPublicClass()
throws BadLocationException,
IOException,
InterruptedException,
InterpreterException
- Tests that we get the correct 'cannot access its superinterface' error for non-public classes.
- Throws:
BadLocationException
IOException
InterruptedException
InterpreterException
testInterpretExtendPublicClass
public void testInterpretExtendPublicClass()
throws BadLocationException,
IOException,
InterruptedException,
InterpreterException
- Tests that we don't get an error for public classes.
- Throws:
BadLocationException
IOException
InterruptedException
InterpreterException
testInterpretGetPackageClass
public void testInterpretGetPackageClass()
throws BadLocationException,
IOException,
InterruptedException,
InterpreterException
- Test that we get the right package using getPackage().
- Throws:
BadLocationException
IOException
InterruptedException
InterpreterException
testInterpretGetPackageAnonymous
public void testInterpretGetPackageAnonymous()
throws BadLocationException,
IOException,
InterruptedException,
InterpreterException
- Test that we get the right package using getPackage() with anonymous inner classes defined in the Interactions Pane.
- Throws:
BadLocationException
IOException
InterruptedException
InterpreterException