edu.rice.cs.drjava.model .MultiThreadedTestCase edu.rice.cs.drjava.model .GlobalModelTestCase edu.rice.cs.drjava.model.debug .DebugTestCase edu.rice.cs.drjava.model.debug.jpda .JPDADebugTestCase edu.rice.cs.drjava.model.debug.jpda .DebugTest DebugTest final public class DebugTest extends JPDADebugTestCase implements OptionConstants (Code) Tests the JPDA-based debugger.
version: $Id: DebugTest.java 4255 2007-08-28 19:17:37Z mgricken $
testBreakpoints public synchronized void testBreakpoints() throws Exception (Code) Tests that breakpoints behave correctly.
testBreakpointsWithSameNamePrefix public synchronized void testBreakpointsWithSameNamePrefix() throws Exception (Code) Tests that the debugger will stop at a breakpoint in one class
when the invoking method resides in a class with the same
prefix in its name. (bug #769764)
(ie. Class DrJavaDebugTest2 has a method which calls something
in class DrJavaDebugTest, which has a breakpoint.)
testGetPackageDir public void testGetPackageDir()(Code) Tests the utility function to get a relative directory for a package.
testMultiThreadedBreakpointsAndStep public synchronized void testMultiThreadedBreakpointsAndStep() throws Exception (Code) Tests that breakpoints behave correctly for multiple threads.
testMultiThreadedSetCurrentThread public synchronized void testMultiThreadedSetCurrentThread() throws Exception (Code) Test that when two threads are suspended setCurrentThread can be used
to switch between them in the debugger
testStartupAndShutdown public void testStartupAndShutdown() throws DebugException , InterruptedException (Code) Tests startUp and shutdown, ensuring that all appropriate fields are initialized. Ensures multiple startups
and shutdowns work, even after a reset, which changes the debug port.
testStepInto public void testStepInto() throws Exception (Code) Tests that breakpoints and steps behave correctly.
testStepOut public synchronized void testStepOut() throws Exception (Code) Tests that stepping out of a method behaves correctly.
testStepOverWithPackage public synchronized void testStepOverWithPackage() throws Exception (Code) Tests that stepping works in a public class with a package
Methods inherited from edu.rice.cs.drjava.model.debug.jpda.JPDADebugTestCase public void setUp() throws Exception (Code) (Java Doc)
Methods inherited from edu.rice.cs.drjava.model.GlobalModelTestCase protected void assertCompileErrorsPresent(boolean b)(Code) (Java Doc) protected void assertCompileErrorsPresent(String name, boolean b)(Code) (Java Doc) protected void assertContents(String s, OpenDefinitionsDocument doc) throws BadLocationException (Code) (Java Doc) protected void assertInteractionsContains(String text) throws EditDocumentException (Code) (Java Doc) protected void assertInteractionsDoesNotContain(String text) throws EditDocumentException (Code) (Java Doc) protected void assertInteractionsDoesNotMatch(String regex) throws EditDocumentException (Code) (Java Doc) protected void assertInteractionsMatches(String regex) throws EditDocumentException (Code) (Java Doc) protected void assertLength(int len, OpenDefinitionsDocument doc)(Code) (Java Doc) protected void assertModified(boolean b, OpenDefinitionsDocument doc)(Code) (Java Doc) protected void assertNumOpenDocs(int num)(Code) (Java Doc) protected void changeDocumentText(String s, OpenDefinitionsDocument doc) throws BadLocationException (Code) (Java Doc) protected File classForJava(File sourceFile, String className)(Code) (Java Doc) protected File createFile(String name)(Code) (Java Doc) protected synchronized OpenDefinitionsDocument doCompile(String text, File file) throws IOException , BadLocationException , InterruptedException (Code) (Java Doc) protected void doCompile(OpenDefinitionsDocument doc, File file) throws IOException , InterruptedException (Code) (Java Doc) protected String getCompilerErrorString()(Code) (Java Doc) protected String getInteractionsText() throws EditDocumentException (Code) (Java Doc) protected String interpret(String input) throws EditDocumentException (Code) (Java Doc) protected void interpretIgnoreResult(String input) throws EditDocumentException (Code) (Java Doc) public void setUp() throws Exception (Code) (Java Doc) protected OpenDefinitionsDocument setupDocument(String text) throws BadLocationException (Code) (Java Doc) public void tearDown() throws Exception (Code) (Java Doc) protected File tempDirectory() throws IOException (Code) (Java Doc) protected File tempFile() throws IOException (Code) (Java Doc) protected File tempFile(int i) throws IOException (Code) (Java Doc) protected File writeToNewTempFile(String text) throws IOException (Code) (Java Doc)
Fields inherited from edu.rice.cs.drjava.model.MultiThreadedTestCase protected static volatile boolean _testFailed(Code) (Java Doc)