edu.rice.cs.drjava.model.debug.jpda
Class DebugContextTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.rice.cs.drjava.DrJavaTestCase
              extended by edu.rice.cs.drjava.model.MultiThreadedTestCase
                  extended by edu.rice.cs.drjava.model.GlobalModelTestCase
                      extended by edu.rice.cs.drjava.model.debug.DebugTestCase
                          extended by edu.rice.cs.drjava.model.debug.jpda.JPDADebugTestCase
                              extended by edu.rice.cs.drjava.model.debug.jpda.DebugContextTest
All Implemented Interfaces:
Test

public final class DebugContextTest
extends JPDADebugTestCase

More tests over the JPDA debugger.

Version:
$Id: DebugContextTest.java 4691 2008-12-02 23:33:27Z dlsmith $

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.rice.cs.drjava.model.debug.DebugTestCase
DebugTestCase.BreakpointTestListener, DebugTestCase.DebugStartAndStopListener, DebugTestCase.DebugTestListener, DebugTestCase.InterpretListener, DebugTestCase.StepTestListener
 
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.TestGlobalModel, GlobalModelTestCase.TestListener, GlobalModelTestCase.WarningFileSelector
 
Field Summary
 
Fields inherited from class edu.rice.cs.drjava.model.debug.jpda.JPDADebugTestCase
_debugger
 
Fields inherited from class edu.rice.cs.drjava.model.debug.DebugTestCase
_notifierLock, _pendingNotifies, CLASS_WITH_STATIC_FIELD, DEBUG_CLASS, DEBUG_CLASS_WITH_PACKAGE, INNER_CLASS_WITH_LOCAL_VARS, MONKEY_CLASS, MONKEY_STATIC_STUFF, MONKEY_WITH_INNER_CLASS, SUSPEND_CLASS, THREAD_DEATH_CLASS
 
Fields inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase
_doc, _interactionsController, _log, _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
 
Fields inherited from class edu.rice.cs.drjava.model.MultiThreadedTestCase
_testFailed
 
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase
TEST_DRJAVA_CONFIG_PROPERTY
 
Constructor Summary
DebugContextTest()
           
 
Method Summary
 void testStub()
           
 void XXXtestBreakpointsAndStepsInNonPublicClasses()
          Tests that breakpoints behave correctly in non-public classes.
 void XXXtestDebugSourcepath()
          Tests that the sourcepath config option properly adds files to the search directories.
 void XXXtestNonStaticWatches()
          Tests that watches can correctly see the values of local variables, fields and fields of outer classes.
 void XXXtestStaticFieldsConsistent()
          Tests that static fields are consistent across different interpreter contexts.
 void XXXtestStaticWatches()
          Tests that watches can correctly see the values of local variables, fields and fields of outer classes.
 void XXXtestStepIntoOverBreakpoint()
          Tests that stepping into a breakpoint works.
 void XXXtestThreadShouldDie()
          Tests that watches can correctly see the values of final local variables and method parameters from enclosing classes.
 void XXXtestWatchLocalVarsFromInnerClass()
          Tests that watches can correctly see the values of final local variables and method parameters from enclosing classes.
 
Methods inherited from class edu.rice.cs.drjava.model.debug.jpda.JPDADebugTestCase
setUp
 
Methods inherited from class edu.rice.cs.drjava.model.debug.DebugTestCase
_asyncDoSetCurrentThread, _asyncResume, _asyncStep, _doSetCurrentThread, _notifyLock, _setPendingNotifies, _shutdownAndWaitForInteractionEnded, _shutdownWithoutSuspendedInteraction, _startupDebugger, _startupDebugger, tearDown
 
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, setupDocument, tempDirectory, tempFile, tempFile, testStartCompile, writeToNewTempFile
 
Methods inherited from class edu.rice.cs.drjava.model.MultiThreadedTestCase
join, listenerFail, wait
 
Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase
setConfigSetting, setDocText
 
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
 

Constructor Detail

DebugContextTest

public DebugContextTest()
Method Detail

testStub

public void testStub()

XXXtestDebugSourcepath

public void XXXtestDebugSourcepath()
                            throws Exception
Tests that the sourcepath config option properly adds files to the search directories.

Throws:
Exception

XXXtestBreakpointsAndStepsInNonPublicClasses

public void XXXtestBreakpointsAndStepsInNonPublicClasses()
                                                  throws Exception
Tests that breakpoints behave correctly in non-public classes.

Throws:
Exception

XXXtestStepIntoOverBreakpoint

public void XXXtestStepIntoOverBreakpoint()
                                   throws Exception
Tests that stepping into a breakpoint works.

Throws:
Exception

XXXtestStaticFieldsConsistent

public void XXXtestStaticFieldsConsistent()
                                   throws Exception
Tests that static fields are consistent across different interpreter contexts.

Throws:
Exception

XXXtestNonStaticWatches

public void XXXtestNonStaticWatches()
                             throws Exception
Tests that watches can correctly see the values of local variables, fields and fields of outer classes. Also tests that we can watch objects initialized to null (bug #771040) and that we can watch final local variables of outer classes (bug #769174).

Throws:
Exception

XXXtestStaticWatches

public void XXXtestStaticWatches()
                          throws Exception
Tests that watches can correctly see the values of local variables, fields and fields of outer classes.

Throws:
Exception

XXXtestWatchLocalVarsFromInnerClass

public void XXXtestWatchLocalVarsFromInnerClass()
                                         throws Exception
Tests that watches can correctly see the values of final local variables and method parameters from enclosing classes. Note: Some final local variables are inlined by the compiler (even in debug mode), so they are unavailable to the debugger.

Throws:
Exception

XXXtestThreadShouldDie

public void XXXtestThreadShouldDie()
                            throws Exception
Tests that watches can correctly see the values of final local variables and method parameters from enclosing classes. Note: Some final local variables are inlined by the compiler (even in debug mode), so they are unavailable to the debugger.

Throws:
Exception