|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.skyscreamer.jsonassert.JSONCompareResult
public class JSONCompareResult
Bean for holding results from JSONCompare.
Constructor Summary | |
---|---|
JSONCompareResult()
Default constructor. |
Method Summary | |
---|---|
protected void |
fail(java.lang.String message)
Identify that the comparison failed |
protected void |
fail(java.lang.String field,
java.lang.Object expected,
java.lang.Object actual)
Identify that the comparison failed |
boolean |
failed()
Did the comparison fail? |
java.lang.String |
getMessage()
Result message |
boolean |
passed()
Did the comparison pass? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSONCompareResult()
Method Detail |
---|
public boolean passed()
public boolean failed()
public java.lang.String getMessage()
protected void fail(java.lang.String message)
message
- String explaining why if the comparison failedprotected void fail(java.lang.String field, java.lang.Object expected, java.lang.Object actual)
field
- Which field failedexpected
- Expected resultactual
- Actual result
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |