public final class HessianSerializabilityTests extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
both(Serializable obj)
Checks serializability of one object and equality of the provided instance and the deserialized
one using both Hessian 1 and 2.
|
static void |
both(Serializable obj,
boolean equality)
Checks serializability of one object and (if desired) equality of the provided instance and the
deserialized one using both Hessian 1 and 2.
|
static <T extends Serializable> |
hessian1(T obj)
Checks serializability of one object and equality of the provided instance and the deserialized
one using Hessian 1.
|
static <T extends Serializable> |
hessian1(T obj,
boolean equality)
Checks serializability of one object and (if desired) equality of the provided instance and the
deserialized one using Hessian 1.
|
static <T extends Serializable> |
hessian2(T obj)
Checks serializability of one object and equality of the provided instance and the deserialized
one using Hessian 2.
|
static <T extends Serializable> |
hessian2(T obj,
boolean equality)
Checks serializability of one object and (if desired) equality of the provided instance and the
deserialized one using Hessian 2.
|
public static <T extends Serializable> T hessian1(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 hessian1(T obj) throws UnableToSerializeException
obj - Object to test.UnableToSerializeExceptionEqualityTests#two(Object, Object)}public static <T extends Serializable> T hessian2(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 hessian2(T obj) throws UnableToSerializeException
obj - Object to test.UnableToSerializeExceptionEqualityTests#two(Object, Object)}public static void both(Serializable obj, boolean equality) throws UnableToSerializeException
obj - Object to test.equality - Whether to test for equality.UnableToSerializeExceptionEqualityTests#two(Object, Object)}public static void both(Serializable obj) throws UnableToSerializeException
obj - Object to test.UnableToSerializeExceptionEqualityTests#two(Object, Object)}Copyright © 2014. All rights reserved.