@Test public void invalidJsonDescription() throws Exception { final Matcher<String> sut = isJsonStringMatching(any(JsonNode.class)); final Description description = new StringDescription(); sut.describeMismatch("{", description); assertThat(description.toString(), containsString("but the string was not valid JSON")); }
public static Matcher<String> isJsonStringMatching(final Matcher<JsonNode> matcher) { return new IsJsonStringMatching(matcher); }
IsJsonStringMatching extends TypeSafeDiagnosingMatcher<String> { public static Matcher<String> isJsonStringMatching(final Matcher<JsonNode> matcher) { return new IsJsonStringMatching(matcher); } }
IsJsonStringMatching extends TypeSafeDiagnosingMatcher<String> { public static Matcher<String> isJsonStringMatching(final Matcher<JsonNode> matcher) { return new IsJsonStringMatching(matcher); } private  IsJsonStringMatching(final Matcher<JsonNode> matcher); }
IsJsonStringMatching extends TypeSafeDiagnosingMatcher<String> { public static Matcher<String> isJsonStringMatching(final Matcher<JsonNode> matcher) { return new IsJsonStringMatching(matcher); } private  IsJsonStringMatching(final Matcher<JsonNode> matcher); static Matcher<String> isJsonStringMatching(final Matcher<JsonNode> matcher); @Override void describeTo(final Description description); }
IsJsonStringMatching extends TypeSafeDiagnosingMatcher<String> { public static Matcher<String> isJsonStringMatching(final Matcher<JsonNode> matcher) { return new IsJsonStringMatching(matcher); } private  IsJsonStringMatching(final Matcher<JsonNode> matcher); static Matcher<String> isJsonStringMatching(final Matcher<JsonNode> matcher); @Override void describeTo(final Description description);  }