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