@TestInstance
public class AbstractSerializerTest2<T>
Abstract base class for serializer tests.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSerializerTest2() |
protected |
AbstractSerializerTest2(boolean reflectionEqualsCheckEnabled) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Entry<? extends T> |
create(T object,
kotlin.Array[] expected) |
static <T> Entry<? extends T> |
create(T object,
java.net.URL expected) |
static <T> Entry<? extends T> |
create(T object,
java.io.InputStream expected) |
protected com.cedarsoft.serialization.Serializer<T,java.io.OutputStream,java.io.InputStream> |
getSerializer()
Returns the serializer
|
protected java.util.stream.Stream<? extends com.cedarsoft.serialization.test.utils.Entry<? extends T>> |
provideData()
Provides some test data. May be overridden by sub classes
|
protected kotlin.Array[] |
serialize(com.cedarsoft.serialization.Serializer<T,java.io.OutputStream,java.io.InputStream> serializer,
T objectToSerialize) |
void |
testSerializer(Entry<?> entry) |
protected void |
verifyDeserialized(T deserialized,
T original)
Verifies the deserialized object
|
protected void |
verifySerialized(Entry<T> entry,
kotlin.Array[] serialized) |
protected AbstractSerializerTest2()
protected AbstractSerializerTest2(boolean reflectionEqualsCheckEnabled)
@ParameterizedTest
@MethodSource
@ByTypeSource
public void testSerializer(@Nonnull
Entry<?> entry)
@Nonnull
protected kotlin.Array[] serialize(@Nonnull
com.cedarsoft.serialization.Serializer<T,java.io.OutputStream,java.io.InputStream> serializer,
@Nonnull
T objectToSerialize)
@Nonnull protected java.util.stream.Stream<? extends com.cedarsoft.serialization.test.utils.Entry<? extends T>> provideData()
Provides some test data. May be overridden by sub classes
protected void verifySerialized(@Nonnull
Entry<T> entry,
@Nonnull
kotlin.Array[] serialized)
@Nonnull protected com.cedarsoft.serialization.Serializer<T,java.io.OutputStream,java.io.InputStream> getSerializer()
Returns the serializer
protected void verifyDeserialized(@Nonnull
T deserialized,
@Nonnull
T original)
Verifies the deserialized object
deserialized - org.jetbrains.dokka.NodeRenderContent@41809db3: the deserialized objectoriginal - org.jetbrains.dokka.NodeRenderContent@562fce66: the original@Nonnull public static <T> Entry<? extends T> create(@Nonnull T object, @Nonnull kotlin.Array[] expected)
@Nonnull public static <T> Entry<? extends T> create(@Nonnull T object, @Nonnull java.net.URL expected)
@Nonnull public static <T> Entry<? extends T> create(@Nonnull T object, @Nonnull java.io.InputStream expected)