@Test public void testMatchLongValue() throws Exception { final Matcher<JsonNode> sut = jsonLong(1L); assertThat(NF.numberNode(1), is(sut)); }
public static Matcher<JsonNode> jsonLong(long number) { return new IsJsonNumber(is(number), NumericNode::asLong); }
IsJsonNumber extends AbstractJsonNodeMatcher<NumericNode> { public static Matcher<JsonNode> jsonLong(long number) { return new IsJsonNumber(is(number), NumericNode::asLong); } }
IsJsonNumber extends AbstractJsonNodeMatcher<NumericNode> { public static Matcher<JsonNode> jsonLong(long number) { return new IsJsonNumber(is(number), NumericNode::asLong); } private  IsJsonNumber(final Matcher<?> numberMatcher,
                       final Function<NumericNode, Object> projection); }
IsJsonNumber extends AbstractJsonNodeMatcher<NumericNode> { public static Matcher<JsonNode> jsonLong(long number) { return new IsJsonNumber(is(number), NumericNode::asLong); } private  IsJsonNumber(final Matcher<?> numberMatcher,
                       final Function<NumericNode, Object> projection); static Matcher<JsonNode> jsonNumber(); static Matcher<JsonNode> jsonNumber(final NumericNode value); static Matcher<JsonNode> jsonInt(int number); static Matcher<JsonNode> jsonInt(Matcher<? super Integer> numberMatcher); static Matcher<JsonNode> jsonLong(long number); static Matcher<JsonNode> jsonLong(Matcher<? super Long> numberMatcher); static Matcher<JsonNode> jsonBigInteger(BigInteger number); static Matcher<JsonNode> jsonBigInteger(Matcher<? super BigInteger> numberMatcher); static Matcher<JsonNode> jsonFloat(float number); static Matcher<JsonNode> jsonFloat(Matcher<? super Float> numberMatcher); static Matcher<JsonNode> jsonDouble(double number); static Matcher<JsonNode> jsonDouble(Matcher<? super Double> numberMatcher); static Matcher<JsonNode> jsonBigDecimal(BigDecimal number); static Matcher<JsonNode> jsonBigDecimal(Matcher<? super BigDecimal> numberMatcher); @Override void describeTo(Description description); }
IsJsonNumber extends AbstractJsonNodeMatcher<NumericNode> { public static Matcher<JsonNode> jsonLong(long number) { return new IsJsonNumber(is(number), NumericNode::asLong); } private  IsJsonNumber(final Matcher<?> numberMatcher,
                       final Function<NumericNode, Object> projection); static Matcher<JsonNode> jsonNumber(); static Matcher<JsonNode> jsonNumber(final NumericNode value); static Matcher<JsonNode> jsonInt(int number); static Matcher<JsonNode> jsonInt(Matcher<? super Integer> numberMatcher); static Matcher<JsonNode> jsonLong(long number); static Matcher<JsonNode> jsonLong(Matcher<? super Long> numberMatcher); static Matcher<JsonNode> jsonBigInteger(BigInteger number); static Matcher<JsonNode> jsonBigInteger(Matcher<? super BigInteger> numberMatcher); static Matcher<JsonNode> jsonFloat(float number); static Matcher<JsonNode> jsonFloat(Matcher<? super Float> numberMatcher); static Matcher<JsonNode> jsonDouble(double number); static Matcher<JsonNode> jsonDouble(Matcher<? super Double> numberMatcher); static Matcher<JsonNode> jsonBigDecimal(BigDecimal number); static Matcher<JsonNode> jsonBigDecimal(Matcher<? super BigDecimal> numberMatcher); @Override void describeTo(Description description);  }