mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-15 10:20:47 +00:00
Clean-up where assumption of serializability no longer appropriate
This commit is contained in:
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.
|
||||
|
||||
Reference in new issue
Block a user