public class AbstractJsonSerializerTest2<T> extends AbstractSerializerTest2<T>
Abstract base class for JSON based serializers.
Attention: it is necessary to define at least one DataPoint:
@DataPoint
public static final Entry> ENTRY1 = create(
new DomainObject(),
"{}" );
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addTypeInformation(kotlin.Array[] expectedJson) |
static java.lang.String |
addTypeInformation(com.cedarsoft.serialization.Serializer<?,?,?> serializer,
kotlin.Array[] expectedJson) |
protected boolean |
addTypeInformation() |
static java.lang.String |
addTypeInformation(java.lang.String type,
com.cedarsoft.version.Version version,
kotlin.Array[] xmlBytes) |
protected static <T> Entry<? extends T> |
create(T object,
java.lang.String expected) |
protected com.cedarsoft.serialization.StreamSerializer<T> |
getSerializer() |
protected static java.lang.String |
getType(com.cedarsoft.serialization.Serializer<?,?,?> serializer) |
protected void |
verify(kotlin.Array[] current,
kotlin.Array[] expectedJson) |
protected void |
verifySerialized(Entry<T> entry,
kotlin.Array[] serialized) |
create, create, create, getSerializer, provideData, serialize, testSerializer, verifyDeserialized, verifySerialized@Nonnull protected com.cedarsoft.serialization.StreamSerializer<T> getSerializer()
protected void verify(@Nonnull
kotlin.Array[] current,
@Nonnull
kotlin.Array[] expectedJson)
@Nonnull
public java.lang.String addTypeInformation(@Nonnull
kotlin.Array[] expectedJson)
@Nonnull
protected static java.lang.String getType(@Nonnull
com.cedarsoft.serialization.Serializer<?,?,?> serializer)
@Nonnull
public static java.lang.String addTypeInformation(@Nonnull
com.cedarsoft.serialization.Serializer<?,?,?> serializer,
@Nonnull
kotlin.Array[] expectedJson)
protected boolean addTypeInformation()
@Nonnull
public static java.lang.String addTypeInformation(@Nonnull
java.lang.String type,
@Nonnull
com.cedarsoft.version.Version version,
@Nonnull
kotlin.Array[] xmlBytes)
protected void verifySerialized(@Nonnull
Entry<T> entry,
@Nonnull
kotlin.Array[] serialized)
@Nonnull protected static <T> Entry<? extends T> create(@Nonnull T object, @Nonnull java.lang.String expected)