|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.derquinse.common.test.GsonSerializabilityTests
public final class GsonSerializabilityTests
Gson serializability support methods.
| Method Summary | ||
|---|---|---|
static
|
check(Gson gson,
T obj)
Checks serializability of one object and equality of the provided instance and the deserialized one. |
|
static
|
check(Gson gson,
T obj,
Type type)
Checks serializability of one object and equality of the provided instance and the deserialized one. |
|
static
|
check(Gson gson,
T obj,
Type type,
boolean equality)
Checks serializability of one object and (if desired) equality of the provided instance and the deserialized one. |
|
static
|
check(T obj)
Checks serializability of one object and equality of the provided instance and the deserialized one. |
|
static
|
check(T obj,
boolean equality)
Checks serializability of one object and (if desired) equality of the provided instance and the deserialized one. |
|
static
|
check(T obj,
Type type)
Checks serializability of one object and equality of the provided instance and the deserialized one. |
|
static
|
check(T obj,
Type type,
boolean equality)
Checks serializability of one object and (if desired) equality of the provided instance and the deserialized one. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> T check(Gson gson,
T obj,
Type type,
boolean equality)
throws UnableToSerializeException
gson - Gson instance to use.obj - Object to test.type - Type to use for deserialization.equality - Whether to test for equality.
UnableToSerializeExceptionEqualityTests.two(Object, Object)
public static <T> T check(Gson gson,
T obj,
Type type)
throws UnableToSerializeException
gson - Gson instance to use.obj - Object to test.type - Type to use for deserialization.
UnableToSerializeExceptionEqualityTests.two(Object, Object)
public static <T> T check(Gson gson,
T obj)
throws UnableToSerializeException
gson - Gson instance to use.obj - Object to test.
UnableToSerializeExceptionEqualityTests.two(Object, Object)
public static <T> T check(T obj,
Type type,
boolean equality)
throws UnableToSerializeException
obj - Object to test.type - Type to use for deserialization.equality - Whether to test for equality.
UnableToSerializeExceptionEqualityTests.two(Object, Object)
public static <T> T check(T obj,
Type type)
throws UnableToSerializeException
obj - Object to test.type - Type to use for deserialization.
UnableToSerializeExceptionEqualityTests.two(Object, Object)
public static <T> 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> T check(T obj)
throws UnableToSerializeException
obj - Object to test.
UnableToSerializeExceptionEqualityTests.two(Object, Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||