com.atlassian.bamboo.matcher.json
Class JsonMatcher

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<String>
          extended by com.atlassian.bamboo.matcher.json.JsonMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<String>, org.hamcrest.SelfDescribing

public class JsonMatcher
extends org.hamcrest.TypeSafeMatcher<String>


Constructor Summary
JsonMatcher(com.google.gson.JsonElement expectedJsonObject)
           
JsonMatcher(String expectedJsonStr)
           
 
Method Summary
 void describeTo(org.hamcrest.Description description)
           
protected  boolean matchesSafely(String item)
           
 
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matches
 
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonMatcher

public JsonMatcher(String expectedJsonStr)

JsonMatcher

public JsonMatcher(com.google.gson.JsonElement expectedJsonObject)
Method Detail

matchesSafely

protected boolean matchesSafely(@NotNull
                                String item)
Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<String>

describeTo

public void describeTo(org.hamcrest.Description description)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.