public final class JSefaTestUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JSefaTestUtil.FormatType
Enum constants for the different format types.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
assertRepeatedRoundTripSucceeds(JSefaTestUtil.FormatType formatType,
Configuration config,
Object... dtos)
Does a repeated round trip check, i.
|
static void |
assertRepeatedRoundTripSucceeds(JSefaTestUtil.FormatType formatType,
Object... dtos)
Does a repeated round trip check, i.
|
static Configuration |
createConfiguration(JSefaTestUtil.FormatType formatType)
Creates a default configuration for the given format type.
|
static IOFactory |
createIOFactory(JSefaTestUtil.FormatType formatType,
Class<?>... objectTypes)
Creates a
IOFactory. |
static IOFactory |
createIOFactory(JSefaTestUtil.FormatType formatType,
Configuration config,
Class<?>... objectTypes)
Creates a
IOFactory. |
static <T> T |
deserialize(JSefaTestUtil.FormatType formatType,
Configuration config,
String inputString,
Class<T>... objectTypes)
Deserializes an object of the given DTO from the given
String. |
static <T> T |
deserialize(JSefaTestUtil.FormatType formatType,
String inputString,
Class<T>... objectTypes)
Deserializes an object of the given DTO from the given
String. |
static String |
serialize(JSefaTestUtil.FormatType formatType,
Class objectType,
Object object)
Serializes the given object using an
IOFactory constructed for the given object type. |
static String |
serialize(JSefaTestUtil.FormatType formatType,
Configuration config,
Object... objects)
Serializes the given object.
|
static String |
serialize(JSefaTestUtil.FormatType formatType,
Object... objects)
Serializes the given objects.
|
public static void assertRepeatedRoundTripSucceeds(JSefaTestUtil.FormatType formatType, Object... dtos)
formatType - the format typedtos - the DTOspublic static void assertRepeatedRoundTripSucceeds(JSefaTestUtil.FormatType formatType, Configuration config, Object... dtos)
formatType - the format typeconfig - the configurationdtos - the DTOspublic static String serialize(JSefaTestUtil.FormatType formatType, Object... objects)
formatType - the format typeobjects - the objects to serializepublic static String serialize(JSefaTestUtil.FormatType formatType, Configuration config, Object... objects)
formatType - the format typeconfig - the configurationobjects - the objects to serializepublic static String serialize(JSefaTestUtil.FormatType formatType, Class objectType, Object object)
IOFactory constructed for the given object type.formatType - the format typeobjectType - the object typeobject - the object to serializepublic static <T> T deserialize(JSefaTestUtil.FormatType formatType, String inputString, Class<T>... objectTypes)
String.T - the type of the objectformatType - the format typeinputString - the String to deserialize the DTO fromobjectTypes - the object typespublic static <T> T deserialize(JSefaTestUtil.FormatType formatType, Configuration config, String inputString, Class<T>... objectTypes)
String.T - the type of the objectformatType - the format typeconfig - the configurationinputString - the String to deserialize the DTO fromobjectTypes - the object typespublic static Configuration createConfiguration(JSefaTestUtil.FormatType formatType)
formatType - the format typepublic static IOFactory createIOFactory(JSefaTestUtil.FormatType formatType, Class<?>... objectTypes)
IOFactory.formatType - the format typeobjectTypes - the object typesIOFactorypublic static IOFactory createIOFactory(JSefaTestUtil.FormatType formatType, Configuration config, Class<?>... objectTypes)
IOFactory.formatType - the format typeconfig - the configurationobjectTypes - the object typesIOFactoryCopyright © 2014. All rights reserved.