edu.rice.cs.drjava.ui.config
Class FileOptionComponentTest

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.ui.config.FileOptionComponentTest
All Implemented Interfaces:
Test

public final class FileOptionComponentTest
extends DrJavaTestCase

Tests functionality of this OptionComponent.


Nested Class Summary
 
Nested classes/interfaces inherited from class junit.framework.TestCase
TestCase.WrappedException
 
Field Summary
private static FileOptionComponent _option
           
 
Constructor Summary
FileOptionComponentTest(java.lang.String name)
           
 
Method Summary
protected  void setUp()
          Set up for every test.
 void tearDown()
          Clean up for every test case.
 void testApplyDoesChangeConfig()
           
 void testApplyThenResetDefault()
           
 void testCancelDoesNotChangeConfig()
           
 
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
 

Field Detail

_option

private static FileOptionComponent _option
Constructor Detail

FileOptionComponentTest

public FileOptionComponentTest(java.lang.String name)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: DrJavaTestCase
Set up for every test.

Overrides:
setUp in class DrJavaTestCase
Throws:
java.lang.Exception - This convention is mandated by JUnit.TestCase, the superclass of this class.

testCancelDoesNotChangeConfig

public void testCancelDoesNotChangeConfig()

testApplyDoesChangeConfig

public void testApplyDoesChangeConfig()

testApplyThenResetDefault

public void testApplyThenResetDefault()

tearDown

public void tearDown()
              throws java.lang.Exception
Description copied from class: DrJavaTestCase
Clean up for every test case. Only used in unit tests. Added because Windows would intermittently throw a java.util.concurrent.RejectedExecutionException during cleanup.

Overrides:
tearDown in class DrJavaTestCase
Throws:
java.lang.Exception