Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jfree.chart.renderer.category.junit
Class LineAndShapeRendererTests  view LineAndShapeRendererTests download LineAndShapeRendererTests.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jfree.chart.renderer.category.junit.LineAndShapeRendererTests
All Implemented Interfaces:
junit.framework.Test

public class LineAndShapeRendererTests
extends junit.framework.TestCase

Tests for the org.jfree.chart.renderer.category.LineAndShapeRenderer class.


Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
LineAndShapeRendererTests(java.lang.String name)
          Constructs a new set of tests.
 
Method Summary
private  boolean checkIndependence(org.jfree.chart.renderer.category.LineAndShapeRenderer r1, org.jfree.chart.renderer.category.LineAndShapeRenderer r2)
          Checks that the two renderers are equal but independent of one another.
static junit.framework.Test suite()
          Returns the tests as a test suite.
 void testCloning()
          Confirm that cloning works.
 void testEquals()
          Test that the equals() method distinguishes all fields.
 void testHashcode()
          Two objects that are equal are required to return the same hashCode.
 void testSerialization()
          Serialize an instance, restore it, and check for equality.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LineAndShapeRendererTests

public LineAndShapeRendererTests(java.lang.String name)
Constructs a new set of tests.

Method Detail

suite

public static junit.framework.Test suite()
Returns the tests as a test suite.


testEquals

public void testEquals()
Test that the equals() method distinguishes all fields.


testHashcode

public void testHashcode()
Two objects that are equal are required to return the same hashCode.


testCloning

public void testCloning()
Confirm that cloning works.


checkIndependence

private boolean checkIndependence(org.jfree.chart.renderer.category.LineAndShapeRenderer r1,
                                  org.jfree.chart.renderer.category.LineAndShapeRenderer r2)
Checks that the two renderers are equal but independent of one another.


testSerialization

public void testSerialization()
Serialize an instance, restore it, and check for equality.