public class JsonTestUtils extends Object
| Constructor and Description |
|---|
JsonTestUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertEqualsJsonResource(String resourceName,
Object obj)
Asserts that the specified Object equals the string defined in the JSON resource.
|
public static void assertEqualsJsonResource(String resourceName, Object obj)
This will marshall the object to a JSON string, format both and then compare them as Strings.
resourceName - Name of the resource that has to be in the same package as the calling classObject - obj to be conpared to the JSON resourceCopyright © 2015. All rights reserved.