edu.rice.cs.drjava.model.debug
Class DebugWatchDataTest

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.debug.DebugWatchDataTest
All Implemented Interfaces:
Test

public final class DebugWatchDataTest
extends DrJavaTestCase

Tests that the DebugWatchData class can display state correctly.

Version:
$Id: DebugWatchDataTest.java 4504 2008-06-03 06:19:20Z rcartwright $

Field Summary
 
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase
TEST_DRJAVA_CONFIG_PROPERTY
 
Constructor Summary
DebugWatchDataTest()
           
 
Method Summary
 void testFirstCreation()
          Tests the state of a watch after its creation.
 void testInScopeThenCleared()
          Tests that a watch displays its value and type correctly, then hides it when the thread resumes.
 void testNotInScope()
          Tests that a watch displays correctly if it is not in scope.
 
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
 

Constructor Detail

DebugWatchDataTest

public DebugWatchDataTest()
Method Detail

testFirstCreation

public void testFirstCreation()
Tests the state of a watch after its creation.


testInScopeThenCleared

public void testInScopeThenCleared()
Tests that a watch displays its value and type correctly, then hides it when the thread resumes. Also tests that the changed flag works correctly.


testNotInScope

public void testNotInScope()
Tests that a watch displays correctly if it is not in scope.