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

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

public final class VectorFileOptionComponentTest
extends DrJavaTestCase

Tests functionality of this OptionComponent


Field Summary
 
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase
TEST_DRJAVA_CONFIG_PROPERTY
 
Constructor Summary
VectorFileOptionComponentTest()
           
 
Method Summary
protected  void setUp()
          Set up for every test.
 void testApplyDoesChangeConfig()
           
 void testApplyThenResetDefault()
           
 void testCancelDoesNotChangeConfig()
           
 boolean vectorEquals(Vector<File> v1, Vector<File> v2)
          The equals method for a parameterized Vector.
 
Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase
setConfigSetting, setDocText, 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

VectorFileOptionComponentTest

public VectorFileOptionComponentTest()
Method Detail

setUp

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

Overrides:
setUp in class DrJavaTestCase
Throws:
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()

vectorEquals

public boolean vectorEquals(Vector<File> v1,
                            Vector<File> v2)
The equals method for a parameterized Vector.

Parameters:
v1 - the first Vector
v2 - the Vector to compare with
Returns:
true iff the two vectors are equal