public final class JsonTest extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assertJsonEquals(String expected,
String actual) |
static <T> String |
marshalToJson(T object) |
static String |
read(InputStream inputStream) |
static <T> T |
unmarshalFromJson(String json,
Class<T> expectedResultType) |
public static <T> String marshalToJson(T object) throws IOException
IOException
public static <T> T unmarshalFromJson(String json, Class<T> expectedResultType) throws IOException
IOException
public static String read(InputStream inputStream) throws IOException
IOException
Copyright © 2018. All rights reserved.