org.jhotdraw.test.util
Class StorageFormatManagerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jhotdraw.test.util.StorageFormatManagerTest
All Implemented Interfaces:
junit.framework.Test

public class StorageFormatManagerTest
extends junit.framework.TestCase

TestCase StorageFormatManagerTest is generated by JUnitDoclet to hold the tests for StorageFormatManager.

See Also:
StorageFormatManager

Constructor Summary
StorageFormatManagerTest(java.lang.String name)
          Constructor StorageFormatManagerTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 StorageFormatManager createInstance()
          Factory method for instances of the class to be tested.
 void testAddStorageFormat()
          Method testAddStorageFormat is testing addStorageFormat
 void testContainsStorageFormat()
          Method testContainsStorageFormat is testing containsStorageFormat
 void testFindStorageFormat()
          Method testFindStorageFormat is testing findStorageFormat
 void testRegisterFileFilters()
          Method testRegisterFileFilters is testing registerFileFilters
 void testRemoveStorageFormat()
          Method testRemoveStorageFormat is testing removeStorageFormat
 void testSetGetDefaultStorageFormat()
          Method testSetGetDefaultStorageFormat is testing setDefaultStorageFormat and getDefaultStorageFormat together by setting some value and verifying it by reading.
 void testVault()
          JUnitDoclet moves marker to this method, if there is not match for them in the regenerated code and if the marker is not empty.
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StorageFormatManagerTest

public StorageFormatManagerTest(java.lang.String name)
Constructor StorageFormatManagerTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.

Method Detail

createInstance

public StorageFormatManager createInstance()
                                    throws java.lang.Exception
Factory method for instances of the class to be tested.

Throws:
java.lang.Exception

testAddStorageFormat

public void testAddStorageFormat()
                          throws java.lang.Exception
Method testAddStorageFormat is testing addStorageFormat

Throws:
java.lang.Exception
See Also:
StorageFormatManager.addStorageFormat(org.jhotdraw.util.StorageFormat)

testRemoveStorageFormat

public void testRemoveStorageFormat()
                             throws java.lang.Exception
Method testRemoveStorageFormat is testing removeStorageFormat

Throws:
java.lang.Exception
See Also:
StorageFormatManager.removeStorageFormat(org.jhotdraw.util.StorageFormat)

testContainsStorageFormat

public void testContainsStorageFormat()
                               throws java.lang.Exception
Method testContainsStorageFormat is testing containsStorageFormat

Throws:
java.lang.Exception
See Also:
StorageFormatManager.containsStorageFormat(org.jhotdraw.util.StorageFormat)

testSetGetDefaultStorageFormat

public void testSetGetDefaultStorageFormat()
                                    throws java.lang.Exception
Method testSetGetDefaultStorageFormat is testing setDefaultStorageFormat and getDefaultStorageFormat together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
StorageFormatManager.setDefaultStorageFormat(org.jhotdraw.util.StorageFormat), StorageFormatManager.getDefaultStorageFormat()

testRegisterFileFilters

public void testRegisterFileFilters()
                             throws java.lang.Exception
Method testRegisterFileFilters is testing registerFileFilters

Throws:
java.lang.Exception
See Also:
StorageFormatManager.registerFileFilters(javax.swing.JFileChooser)

testFindStorageFormat

public void testFindStorageFormat()
                           throws java.lang.Exception
Method testFindStorageFormat is testing findStorageFormat

Throws:
java.lang.Exception
See Also:
StorageFormatManager.findStorageFormat(javax.swing.filechooser.FileFilter)

testVault

public void testVault()
               throws java.lang.Exception
JUnitDoclet moves marker to this method, if there is not match for them in the regenerated code and if the marker is not empty. This way, no test gets lost when regenerating after renaming. Method testVault is supposed to be empty.

Throws:
java.lang.Exception