org.jhotdraw.test.util
Class StorableOutputTest

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

public class StorableOutputTest
extends junit.framework.TestCase

TestCase StorableOutputTest is generated by JUnitDoclet to hold the tests for StorableOutput.

See Also:
StorableOutput

Constructor Summary
StorableOutputTest(java.lang.String name)
          Constructor StorableOutputTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 StorableOutput createInstance()
          Factory method for instances of the class to be tested.
 void testClose()
          Method testClose is testing close
 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.
 void testWriteBoolean()
          Method testWriteBoolean is testing writeBoolean
 void testWriteColor()
          Method testWriteColor is testing writeColor
 void testWriteDouble()
          Method testWriteDouble is testing writeDouble
 void testWriteInt()
          Method testWriteInt is testing writeInt
 void testWriteLong()
          Method testWriteLong is testing writeLong
 void testWriteStorable()
          Method testWriteStorable is testing writeStorable
 void testWriteString()
          Method testWriteString is testing writeString
 
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

StorableOutputTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testWriteStorable

public void testWriteStorable()
                       throws java.lang.Exception
Method testWriteStorable is testing writeStorable

Throws:
java.lang.Exception
See Also:
StorableOutput.writeStorable(org.jhotdraw.util.Storable)

testWriteInt

public void testWriteInt()
                  throws java.lang.Exception
Method testWriteInt is testing writeInt

Throws:
java.lang.Exception
See Also:
StorableOutput.writeInt(int)

testWriteLong

public void testWriteLong()
                   throws java.lang.Exception
Method testWriteLong is testing writeLong

Throws:
java.lang.Exception
See Also:
StorableOutput.writeLong(long)

testWriteColor

public void testWriteColor()
                    throws java.lang.Exception
Method testWriteColor is testing writeColor

Throws:
java.lang.Exception
See Also:
StorableOutput.writeColor(java.awt.Color)

testWriteDouble

public void testWriteDouble()
                     throws java.lang.Exception
Method testWriteDouble is testing writeDouble

Throws:
java.lang.Exception
See Also:
StorableOutput.writeDouble(double)

testWriteBoolean

public void testWriteBoolean()
                      throws java.lang.Exception
Method testWriteBoolean is testing writeBoolean

Throws:
java.lang.Exception
See Also:
StorableOutput.writeBoolean(boolean)

testWriteString

public void testWriteString()
                     throws java.lang.Exception
Method testWriteString is testing writeString

Throws:
java.lang.Exception
See Also:
StorableOutput.writeString(java.lang.String)

testClose

public void testClose()
               throws java.lang.Exception
Method testClose is testing close

Throws:
java.lang.Exception
See Also:
StorableOutput.close()

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