@Test public void testMismatchType() throws Exception { final Matcher<JsonNode> sut = jsonArray(contains(jsonText("a"))); final StringDescription description = new StringDescription(); sut.describeMismatch(NF.booleanNode(false), description); assertThat(description.toString(), is( "was not an array node, but a boolean node" )); }
public static Matcher<JsonNode> jsonArray() { return new IsJsonArray(is(anything())); }
IsJsonArray extends AbstractJsonNodeMatcher<ArrayNode> { public static Matcher<JsonNode> jsonArray() { return new IsJsonArray(is(anything())); } }
IsJsonArray extends AbstractJsonNodeMatcher<ArrayNode> { public static Matcher<JsonNode> jsonArray() { return new IsJsonArray(is(anything())); } private  IsJsonArray(Matcher<? super Collection<JsonNode>> elementsMatcher); }
IsJsonArray extends AbstractJsonNodeMatcher<ArrayNode> { public static Matcher<JsonNode> jsonArray() { return new IsJsonArray(is(anything())); } private  IsJsonArray(Matcher<? super Collection<JsonNode>> elementsMatcher); static Matcher<JsonNode> jsonArray(); static Matcher<JsonNode> jsonArray(
      Matcher<? super Collection<? extends JsonNode>> elementsMatcher); static Matcher<JsonNode> jsonArray(final ArrayNode value); @Override void describeTo(Description description); }
IsJsonArray extends AbstractJsonNodeMatcher<ArrayNode> { public static Matcher<JsonNode> jsonArray() { return new IsJsonArray(is(anything())); } private  IsJsonArray(Matcher<? super Collection<JsonNode>> elementsMatcher); static Matcher<JsonNode> jsonArray(); static Matcher<JsonNode> jsonArray(
      Matcher<? super Collection<? extends JsonNode>> elementsMatcher); static Matcher<JsonNode> jsonArray(final ArrayNode value); @Override void describeTo(Description description);  }