org.skyscreamer.jsonassert
Class JSONCompareResult

java.lang.Object
  extended by org.skyscreamer.jsonassert.JSONCompareResult

public class JSONCompareResult
extends Object

Bean for holding results from JSONCompare.


Constructor Summary
JSONCompareResult()
          Default constructor.
 
Method Summary
protected  void fail(String message)
           
protected  void fail(String field, Object expected, Object actual)
           
 boolean failed()
          Did the comparison fail?
 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

JSONCompareResult

public JSONCompareResult()
Default constructor.

Method Detail

passed

public boolean passed()
Did the comparison pass?

Returns:
True if it passed

failed

public boolean failed()
Did the comparison fail?

Returns:
True if it failed

getMessage

public String getMessage()
Result message

Returns:
String explaining why if the comparison failed

fail

protected void fail(String message)

fail

protected void fail(String field,
                    Object expected,
                    Object actual)


Copyright © 2012. All Rights Reserved.