public class JsonExpectationsHelper extends Object
Use of this class requires the JSONassert library.
Constructor and Description |
---|
JsonExpectationsHelper() |
Modifier and Type | Method and Description |
---|---|
void |
assertJsonEqual(String expected,
String actual)
Parse the expected and actual strings as JSON and assert the two
are "similar" - i.e.
|
void |
assertJsonNotEqual(String expected,
String actual)
Parse the expected and actual strings as JSON and assert the two
are "not similar" - i.e.
|
public void assertJsonEqual(String expected, String actual) throws Exception
expected
- the expected JSON contentactual
- the actual JSON contentException
public void assertJsonNotEqual(String expected, String actual) throws Exception
expected
- the expected JSON contentactual
- the actual JSON contentException