@Test public void testAsBoolean() { String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + "<fruits>" + "<fruit name=\"apple\" fresh=\"true\"/>" + "<fruit name=\"orange\" fresh=\"false\"/>" + "<fruit name=\"banana\" fresh=\"True\"/>" + "<fruit name=\"pear\" fresh=\"False\"/>" + "</fruits>"; assertThat(xml, hasXPath(" assertThat(xml, hasXPath(" assertThat(xml, hasXPath(" assertThat(xml, hasXPath(" }
@Factory public static TypeMatcher<Boolean> asBoolean(Matcher<? extends Boolean> valueMatcher) { return new BooleanTypeMatcher(valueMatcher); }
TypeMatcher extends TypeSafeMatcher<String> { @Factory public static TypeMatcher<Boolean> asBoolean(Matcher<? extends Boolean> valueMatcher) { return new BooleanTypeMatcher(valueMatcher); } }
TypeMatcher extends TypeSafeMatcher<String> { @Factory public static TypeMatcher<Boolean> asBoolean(Matcher<? extends Boolean> valueMatcher) { return new BooleanTypeMatcher(valueMatcher); } TypeMatcher(Class<T> clazz, Matcher<? extends T> valueMatcher); }
TypeMatcher extends TypeSafeMatcher<String> { @Factory public static TypeMatcher<Boolean> asBoolean(Matcher<? extends Boolean> valueMatcher) { return new BooleanTypeMatcher(valueMatcher); } TypeMatcher(Class<T> clazz, Matcher<? extends T> valueMatcher); @Override void describeTo(Description description); @Factory static TypeMatcher<BigDecimal> asBigDecimal(Matcher<? extends BigDecimal> valueMatcher); @Factory static TypeMatcher<Double> asDouble(Matcher<? extends Double> valueMatcher); @Factory static TypeMatcher<Integer> asInt(Matcher<? extends Integer> valueMatcher); @Factory static TypeMatcher<Boolean> asBoolean(Matcher<? extends Boolean> valueMatcher); }
TypeMatcher extends TypeSafeMatcher<String> { @Factory public static TypeMatcher<Boolean> asBoolean(Matcher<? extends Boolean> valueMatcher) { return new BooleanTypeMatcher(valueMatcher); } TypeMatcher(Class<T> clazz, Matcher<? extends T> valueMatcher); @Override void describeTo(Description description); @Factory static TypeMatcher<BigDecimal> asBigDecimal(Matcher<? extends BigDecimal> valueMatcher); @Factory static TypeMatcher<Double> asDouble(Matcher<? extends Double> valueMatcher); @Factory static TypeMatcher<Integer> asInt(Matcher<? extends Integer> valueMatcher); @Factory static TypeMatcher<Boolean> asBoolean(Matcher<? extends Boolean> valueMatcher);  }