org.skyscreamer.jsonassert
Class Customization

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

public final class Customization
extends Object

Associates a custom matcher to a specific jsonpath.


Constructor Summary
Customization(String path, ValueMatcher<Object> comparator)
           
 
Method Summary
 boolean appliesToPath(String path)
           
static Customization customization(String path, ValueMatcher<Object> comparator)
           
 boolean matches(Object actual, Object expected)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Customization

public Customization(String path,
                     ValueMatcher<Object> comparator)
Method Detail

customization

public static Customization customization(String path,
                                          ValueMatcher<Object> comparator)

appliesToPath

public boolean appliesToPath(String path)

matches

public boolean matches(Object actual,
                       Object expected)


Copyright © 2013. All Rights Reserved.