I am trying to write a test for a plugin that verifies some things happen
during the upgrade process. I was trying to do this by using XStream to
serialize the publisher class to XML and then deserialize it and check the
members to see if they were updated correctly. I keep getting exceptions
that my test method is not serializable which I don't understand. My code
looks like the following.
void testMyPublisherTest() {
// setup my publisher here
XStream stream = new XStream();
String xml = stream.toXML(myPublisher);
myPublisher = (MyPublisherType)stream.fromXML(xml);
// check stuff here on the publisher.
}
When I run the test, I get an exception that says that testMyPublisherTest
is not serializable. Any help would be great.
Thanks,
slide
--
Website: http://earl-of-code.com