@TestInstance
public class AbstractVersionTest2<T>
Abstract test class for testing the support for multiple format versions Attention: it is necessary to define at least one DataPoint: @DataPoint
public static final Entry> entry1 = create(
Version.valueOf( 1, 0, 0 ),
serializedAsByteArray; );
| Modifier and Type | Method and Description |
|---|---|
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.VersionEntry> |
provideData()
Provides some test data. May be overridden by sub classes
|
void |
testVersion(VersionEntry entry)
This method checks old serialized objects
|
protected void |
verifyDeserialized(T deserialized,
com.cedarsoft.version.Version version)
Verifies the deserialized object.
|
@ParameterizedTest
@MethodSource
@ByTypeSource
public void testVersion(@Nonnull
VersionEntry entry)
This method checks old serialized objects
Exception - if there is any error@Nonnull protected java.util.stream.Stream<? extends com.cedarsoft.serialization.test.utils.VersionEntry> provideData()
Provides some test data. May be overridden by sub classes
@Nonnull protected com.cedarsoft.serialization.Serializer<T,java.io.OutputStream,java.io.InputStream> getSerializer()
Returns the serializer
Exception - if there is any errorprotected void verifyDeserialized(@Nonnull
T deserialized,
@Nonnull
com.cedarsoft.version.Version version)
Verifies the deserialized object.
deserialized - org.jetbrains.dokka.NodeRenderContent@1805bdb0: the deserialized objectversion - org.jetbrains.dokka.NodeRenderContent@5cd9c83f: the version