public class SerializeTestUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SerializeTestUtil.ObjectAssert<S extends SerializeTestUtil.ObjectAssert<S,A>,A> |
| Constructor and Description |
|---|
SerializeTestUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> SerializeTestUtil.ObjectAssert |
assertThatSerialized(T o) |
static <T> T |
deserialize(byte[] bytes,
Class<T> clazz) |
static <T> T |
roundTrip(T input) |
static <T> T |
roundTripAndEquals(T input) |
static <T> byte[] |
serialize(T object) |
public static <T> byte[] serialize(T object)
throws IOException
IOExceptionpublic static <T> T deserialize(byte[] bytes,
Class<T> clazz)
throws IOException
IOExceptionpublic static <T> T roundTrip(T input)
throws IOException
IOExceptionpublic static <T> T roundTripAndEquals(T input)
throws IOException
IOExceptionpublic static <T> SerializeTestUtil.ObjectAssert assertThatSerialized(T o)
Copyright © 2022. All rights reserved.