Save This Page
Home » jcommon-1.0.13 » org.jfree.io.junit » [javadoc | source]
org.jfree.io.junit
public class: SerialUtilitiesTests [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.jfree.io.junit.SerialUtilitiesTests
Tests for the SerialUtilities class.
Constructor:
 public SerialUtilitiesTests(String name) 
    Constructs a new set of tests.
    Parameters:
    name - the name of the tests.
Method from org.jfree.io.junit.SerialUtilitiesTests Summary:
suite,   testArc2DDoubleSerialization,   testArc2DFloatSerialization,   testColorSerialization,   testColorUIResourceSerialization,   testGeneralPathSerialization,   testGradientPaintSerialization,   testIsSerializable,   testLine2DDoubleSerialization,   testLine2DFloatSerialization,   testRectangle2DDoubleSerialization,   testRectangle2DFloatSerialization,   testTexturePaintSerialization
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.io.junit.SerialUtilitiesTests Detail:
 public static Test suite() 
    Returns the tests as a test suite.
 public  void testArc2DDoubleSerialization() 
    Serialize an Arc2D.Double instance and check that it can be deserialized correctly.
 public  void testArc2DFloatSerialization() 
    Serialize an Arc2D.Float instance and check that it can be deserialized correctly.
 public  void testColorSerialization() 
    Serialize a Color and check that it can be deserialized correctly.
 public  void testColorUIResourceSerialization() 
    Serialize a ColorUIResource and check that it can be deserialized correctly.
 public  void testGeneralPathSerialization() 
    Some checks for the serialization of a GeneralPath instance.
 public  void testGradientPaintSerialization() 
    Serialize a GradientPaint, restore it, and check for equality.
 public  void testIsSerializable() 
    Tests the isSerializable(Class) method for some common cases.
 public  void testLine2DDoubleSerialization() 
    Serialize a Line2D.Double instance and check that it can be deserialized correctly.
 public  void testLine2DFloatSerialization() 
    Serialize a Line2D.Float instance, and check that it can be deserialized correctly.
 public  void testRectangle2DDoubleSerialization() 
    Serialize a Rectangle2D.Double instance and check that it can be deserialized correctly.
 public  void testRectangle2DFloatSerialization() 
    Serialize a Rectangle2D.Float instance, and check that it can be deserialized correctly.
 public  void testTexturePaintSerialization() 
    Serialize a TexturePaint, restore it, and check for equality. Since this class is not serializable, we expect null as the result.