use of org.jfree.text.TextBox in project SIMVA-SoS by SESoS.
the class PieLabelRecordTest method testCloning.
/**
* Confirm that cloning is not implemented.
*/
@Test
public void testCloning() {
PieLabelRecord p1 = new PieLabelRecord("A", 1.0, 2.0, new TextBox("B"), 3.0, 4.0, 5.0);
assertFalse(p1 instanceof Cloneable);
}
use of org.jfree.text.TextBox in project SIMVA-SoS by SESoS.
the class PieLabelRecordTest method testSerialization.
/**
* Serialize an instance, restore it, and check for equality.
*/
@Test
public void testSerialization() {
PieLabelRecord p1 = new PieLabelRecord("A", 1.0, 2.0, new TextBox("B"), 3.0, 4.0, 5.0);
PieLabelRecord p2 = (PieLabelRecord) TestUtilities.serialised(p1);
boolean b = p1.equals(p2);
assertTrue(b);
}
Aggregations