|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--edu.rice.cs.drjava.model.GlobalModelTestCase | +--edu.rice.cs.drjava.model.debug.DebugTest
Tests the JPDA-based debugger.
Inner Class Summary | |
(package private) class |
DebugTest.BreakpointTestListener
Test Listener for all tests setting breakpoints. |
(package private) class |
DebugTest.DebugStartAndStopListener
Test Listener for all tests starting the debugger. |
(package private) class |
DebugTest.DebugTestListener
Listens to events from the debugger to ensure that they happen at the correct times. |
(package private) class |
DebugTest.StepTestListener
TestListener for all tests using the stepper. |
Field Summary | |
protected DebugManager |
_debugManager
|
private Object |
_notifierLock
|
private int |
_pendingNotifies
|
private gj.util.Vector |
_userSourcePath
|
private Boolean |
_userStepDrJava
|
private Boolean |
_userStepInterpreter
|
private Boolean |
_userStepJava
|
protected static String |
DEBUG_CLASS
|
protected static String |
DEBUG_CLASS_WITH_PACKAGE
|
(package private) boolean |
printEvents
|
(package private) boolean |
printMessages
|
Fields inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase |
_model, _originalModel, _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 |
Fields inherited from class junit.framework.TestCase |
fName |
Constructor Summary | |
DebugTest(String name)
Constructor. |
Method Summary | |
private void |
_assertInteractionContainsHelper(String text,
boolean shouldContain)
|
protected OpenDefinitionsDocument |
_doCompile(String text,
File file)
Compiles a new file with the given text. |
protected void |
_notifyObject(Object o)
Notifies the given object if the notify count has expired. |
protected void |
_waitForNotifies(int n)
Ensures that the given object will wait for n notifications. |
protected void |
assertInteractionsContains(String text)
Asserts that the given string exists in the Interactions Document. |
protected void |
assertInteractionsDoesNotContain(String text)
Asserts that the given string does not exist in the Interactions Document. |
protected String |
getInteractionsText()
Returns the current contents of the interactions document |
void |
setUp()
Setup for each test case, which does the following. |
static Test |
suite()
Creates a test suite for JUnit to run. |
void |
tearDown()
Teardown for each test case, which recursively deletes the temporary directory created in setUp. |
void |
testBreakpoints()
Tests that breakpoints behave correctly. |
void |
testBreakpointsAndStepsInNonPublicClasses()
Tests that breakpoints behave correctly. |
void |
testDebugSourcepath()
Tests that the sourcepath config option properly adds files to the search directories. |
void |
testGetPackageDir()
Tests the utility function to get a relative directory for a package. |
void |
testStepInto()
Tests that breakpoints and steps behave correctly. |
void |
testStepOut()
Tests that stepping out of a method behaves correctly. |
void |
testStepOverWithPackage()
Tests that stepping works in a public class with a package |
Methods inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase |
assertCompileErrorsPresent, assertCompileErrorsPresent, assertContents, assertLength, assertModified, assertNumOpenDocs, changeDocumentText, classForJava, createFile, createModel, interpret, interpretIgnoreResult, setupDocument, tempDirectory, tempFile, tempFile, writeToNewTempFile |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame |
Methods inherited from class java.lang.Object |
|
Field Detail |
final boolean printEvents
final boolean printMessages
private int _pendingNotifies
private Object _notifierLock
private gj.util.Vector _userSourcePath
private Boolean _userStepJava
private Boolean _userStepInterpreter
private Boolean _userStepDrJava
protected static final String DEBUG_CLASS
protected static final String DEBUG_CLASS_WITH_PACKAGE
protected DebugManager _debugManager
Constructor Detail |
public DebugTest(String name)
String
- nameMethod Detail |
public static Test suite()
public void setUp() throws IOException
GlobalModelTestCase
GlobalModelTestCase._model
for each test case run.
GlobalModelTestCase._tempDir
.
setUp
in class GlobalModelTestCase
public void tearDown() throws IOException
GlobalModelTestCase
tearDown
in class GlobalModelTestCase
protected void _waitForNotifies(int n) throws InterruptedException
n
- The number of times to be "notified" through _notifyObjectprotected void _notifyObject(Object o)
protected OpenDefinitionsDocument _doCompile(String text, File file) throws IOException, BadLocationException, InterruptedException
protected void assertInteractionsContains(String text) throws BadLocationException
protected void assertInteractionsDoesNotContain(String text) throws BadLocationException
private void _assertInteractionContainsHelper(String text, boolean shouldContain) throws BadLocationException
protected String getInteractionsText() throws BadLocationException
public void testBreakpoints() throws DebugException, BadLocationException, IOException, InterruptedException
public void testStepInto() throws DebugException, BadLocationException, IOException, InterruptedException
public void testStepOut() throws DebugException, BadLocationException, IOException, InterruptedException
public void testStepOverWithPackage() throws DebugException, BadLocationException, IOException, InterruptedException
public void testDebugSourcepath() throws DebugException, BadLocationException, IOException, InterruptedException
public void testBreakpointsAndStepsInNonPublicClasses() throws DebugException, BadLocationException, IOException, InterruptedException
public void testGetPackageDir()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |