public class VizJAXBHandlerTester
extends java.lang.Object
The ICEJAXBHandlerTester is responsible for testing the checks the ICEJAXBHandler to ensure that it can read and write to the streams properly. It used the SimpleJAXBTestClass.
Constructor and Description |
---|
VizJAXBHandlerTester() |
Modifier and Type | Method and Description |
---|---|
void |
checkXMLPersistence()
This operation checks the ICEJAXBHandler to ensure that it can read and
write to the streams properly.
|
void |
checkXMLPersistenceReadOperationWithClassAsNull()
This test checks the behavior ICEJAXBHandler.read() operation when a null
Class parameter is passed.
|
void |
checkXMLPersistenceReadOperationWithInputStreamAsNull()
This test checks the behavior ICEJAXBHandler.read() operation when a null
inputStream parameter is passed.
|
void |
checkXMLPersistenceReadWithInvalidInputStream()
This test checks the behavior ICEJAXBHandler.read() operation when an
invalid inputStream parameter is passed.
|
void |
checkXMLPersistenceReadWithInvalidObject()
This test checks the behavior ICEJAXBHandler.read() operation when an
invalid object is passed.
|
void |
checkXMLPersistenceWriteOperationWithInputStreamAsNull()
This test checks the behavior ICEJAXBHandler.write() operation when a
null inputStream parameter is passed.
|
void |
checkXMLPersistenceWriteOperationWithObjectAsNull()
This test checks the behavior ICEJAXBHandler.write() operation when a
null Object parameter is passed.
|
void |
checkXMLPersistenceWriteWithInvalidObject()
This test checks the behavior ICEJAXBHandler.write() operation when an
invalid object is passed.
|
void |
setupTests()
An operation that sets up some of the tests.
|
public void setupTests()
An operation that sets up some of the tests. @Before Annotation used.
public void checkXMLPersistence()
This operation checks the ICEJAXBHandler to ensure that it can read and write to the streams properly. It used the SimpleJAXBTestClass.
public void checkXMLPersistenceReadOperationWithClassAsNull() throws java.lang.NullPointerException, java.io.IOException, javax.xml.bind.JAXBException
This test checks the behavior ICEJAXBHandler.read() operation when a null Class parameter is passed. The testing method should throw a NullPointerException.
java.lang.NullPointerException
java.io.IOException
javax.xml.bind.JAXBException
public void checkXMLPersistenceReadOperationWithInputStreamAsNull() throws java.io.IOException, javax.xml.bind.JAXBException, java.lang.NullPointerException
This test checks the behavior ICEJAXBHandler.read() operation when a null inputStream parameter is passed. The testing method should throw a NullPointerException.
java.io.IOException
javax.xml.bind.JAXBException
java.lang.NullPointerException
public void checkXMLPersistenceWriteOperationWithObjectAsNull() throws java.io.IOException, javax.xml.bind.JAXBException, java.lang.NullPointerException
This test checks the behavior ICEJAXBHandler.write() operation when a null Object parameter is passed. The testing method should throw a NullPointerException.
java.io.IOException
javax.xml.bind.JAXBException
java.lang.NullPointerException
public void checkXMLPersistenceWriteOperationWithInputStreamAsNull() throws java.io.IOException, javax.xml.bind.JAXBException, java.lang.NullPointerException
This test checks the behavior ICEJAXBHandler.write() operation when a null inputStream parameter is passed. The testing method should throw a NullPointerException.
java.io.IOException
javax.xml.bind.JAXBException
java.lang.NullPointerException
public void checkXMLPersistenceReadWithInvalidInputStream() throws java.io.IOException, javax.xml.bind.JAXBException, java.lang.NullPointerException
This test checks the behavior ICEJAXBHandler.read() operation when an invalid inputStream parameter is passed. The testing method should throw a JAXBException.
java.io.IOException
javax.xml.bind.JAXBException
java.lang.NullPointerException
public void checkXMLPersistenceReadWithInvalidObject() throws java.io.IOException, javax.xml.bind.JAXBException, java.lang.NullPointerException
This test checks the behavior ICEJAXBHandler.read() operation when an invalid object is passed. The testing method should throw a JAXBException. The testing method should throw a JAXBException.
java.io.IOException
javax.xml.bind.JAXBException
java.lang.NullPointerException
public void checkXMLPersistenceWriteWithInvalidObject() throws java.io.IOException, javax.xml.bind.JAXBException, java.lang.NullPointerException
This test checks the behavior ICEJAXBHandler.write() operation when an invalid object is passed. The testing method should throw a JAXBException.
java.io.IOException
javax.xml.bind.JAXBException
java.lang.NullPointerException