Class JsonMatcher

  • All Implemented Interfaces:
    org.hamcrest.Matcher<String>, org.hamcrest.SelfDescribing

    public class JsonMatcher
    extends org.hamcrest.TypeSafeMatcher<String>
    • Constructor Detail

      • JsonMatcher

        public JsonMatcher​(String expectedJsonStr)
      • JsonMatcher

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

      • 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)