public class VizObjectTester
extends java.lang.Object
The VizObjectTester is responsible for testing the VizObject class. It only tests the name, id, and description properties as well as persistence. It also checks equality, hashCode computation, copying, and cloning.
Constructor and Description |
---|
VizObjectTester() |
Modifier and Type | Method and Description |
---|---|
void |
checkCopying()
This operation checks the VizObject class to ensure that its copy() and
clone() operations work as specified.
|
void |
checkEquality()
This operation checks the VizObject class to insure that its equals()
operation works.
|
void |
checkNotifications()
This operation tests the VizObject to insure that it can properly
dispatch notifications when it receives an update that changes its state.
|
void |
checkProperties()
This operation checks the VizObject to insure that the id, name and
description getters and setters function properly.
|
void |
checkXMLPersistence()
This operation checks the ability of the VizObject to persist itself to
XML and to load itself from an XML input stream.
|
public void checkProperties()
public void checkCopying()
public void checkXMLPersistence() throws java.lang.NullPointerException, javax.xml.bind.JAXBException, java.io.IOException
This operation checks the ability of the VizObject to persist itself to XML and to load itself from an XML input stream.
java.io.IOException
javax.xml.bind.JAXBException
java.lang.NullPointerException
public void checkEquality()
This operation checks the VizObject class to insure that its equals() operation works.
public void checkNotifications()
This operation tests the VizObject to insure that it can properly dispatch notifications when it receives an update that changes its state.