Clean-up where assumption of serializability no longer appropriate

This commit is contained in:
gojomo committed 2010-01-26 01:25:47 +00:00
1 parent 248f720cab
commit 1a95e530e8
3 files changed
+5 -16

No files matched your search

@@ -163,8 +163,11 @@ public abstract class ModuleTestBase extends TestCase {
*
* @throws Exception if the module cannot be serialized
*/
public void testSerialization() throws Exception {
public void testSerializationIfAppropriate() throws Exception {
Object first = makeModule();
if(!(first instanceof Serializable)) {
return;
}
byte[] firstBytes = SerializationUtils.serialize((Serializable)first);
Object second = SerializationUtils.deserialize(firstBytes);
@@ -178,7 +181,6 @@ public abstract class ModuleTestBase extends TestCase {
// verifySerialization(first, firstBytes, second, secondBytes);
verifySerialization(first, firstBytes, third, thirdBytes);
}
/**
* Verifies that serialization was successful.