edu.rice.cs.drjava.config
Class SavableConfigurationTest

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

public class SavableConfigurationTest
extends DrJavaTestCase

JUnit test class for testing SavableConfiguration.

Version:
$Id: SavableConfigurationTest.java 5237 2010-04-27 07:52:59Z mgricken $
Author:
Chris Warrington

Nested Class Summary
 
Nested classes/interfaces inherited from class junit.framework.TestCase
TestCase.WrappedException
 
Field Summary
(package private)  SimpleDateFormat dateFormat
          This is the date format the Date.toString() uses.
(package private)  ByteArrayOutputStream outputBytes
           
 
Constructor Summary
SavableConfigurationTest()
           
 
Method Summary
 void setUp()
          Set up for every test.
 void testEmptyConfiguration()
          Tests the saveConfiguration method with no configuration data
 void testNonEmptyConfiguration()
          Tests the saveConfiguration method with some configuration data.
 
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
 

Field Detail

dateFormat

SimpleDateFormat dateFormat
This is the date format the Date.toString() uses.


outputBytes

ByteArrayOutputStream outputBytes
Constructor Detail

SavableConfigurationTest

public SavableConfigurationTest()
Method Detail

setUp

public 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.

testEmptyConfiguration

public void testEmptyConfiguration()
                            throws IOException
Tests the saveConfiguration method with no configuration data

Throws:
IOException

testNonEmptyConfiguration

public void testNonEmptyConfiguration()
                               throws IOException
Tests the saveConfiguration method with some configuration data.

Throws:
IOException