Class JsonMatcher

java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<String>
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

    Constructors
    Constructor
    Description
    JsonMatcher(com.google.gson.JsonElement expectedJsonObject)
     
    JsonMatcher(String expectedJsonStr)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    describeTo(org.hamcrest.Description description)
     
    protected boolean
    matchesSafely(@NotNull 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 Details

    • JsonMatcher

      public JsonMatcher(String expectedJsonStr)
    • JsonMatcher

      public JsonMatcher(com.google.gson.JsonElement expectedJsonObject)
  • Method Details

    • matchesSafely

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

      public void describeTo(org.hamcrest.Description description)