public final class SerializabilityTests extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Serializable> |
check(T obj)
Checks serializability of one object and equality of the provided instance and the deserialized
one.
|
static <T extends Serializable> |
check(T obj,
boolean equality)
Checks serializability of one object and (if desired) equality of the provided instance and the
deserialized one.
|
public static <T extends Serializable> T check(T obj, boolean equality) throws UnableToSerializeException
obj - Object to test.equality - Whether to test for equality.UnableToSerializeExceptionEqualityTests#two(Object, Object)}public static <T extends Serializable> T check(T obj) throws UnableToSerializeException
obj - Object to test.UnableToSerializeExceptionEqualityTests#two(Object, Object)}Copyright © 2014. All rights reserved.