@Test public void supportsMixedTypes() { final Matcher<SampleSubClass> matcher = allOf( equalTo(new SampleBaseClass("bad")), is(notNullValue()), equalTo(new SampleBaseClass("good")), equalTo(new SampleSubClass("ugly"))); assertDoesNotMatch("didn't fail last sub-matcher", matcher, new SampleSubClass("good")); }
@SafeVarargs public AllOf(Matcher<? super T> ... matchers) { this(Arrays.asList(matchers)); }
AllOf extends DiagnosingMatcher<T> { @SafeVarargs public AllOf(Matcher<? super T> ... matchers) { this(Arrays.asList(matchers)); } }
AllOf extends DiagnosingMatcher<T> { @SafeVarargs public AllOf(Matcher<? super T> ... matchers) { this(Arrays.asList(matchers)); } @SafeVarargs  AllOf(Matcher<? super T> ... matchers);  AllOf(Iterable<Matcher<? super T>> matchers); }
AllOf extends DiagnosingMatcher<T> { @SafeVarargs public AllOf(Matcher<? super T> ... matchers) { this(Arrays.asList(matchers)); } @SafeVarargs  AllOf(Matcher<? super T> ... matchers);  AllOf(Iterable<Matcher<? super T>> matchers); @Override boolean matches(Object o, Description mismatch); @Override void describeTo(Description description); static Matcher<T> allOf(Iterable<Matcher<? super T>> matchers); @SafeVarargs static Matcher<T> allOf(Matcher<? super T>... matchers); }
AllOf extends DiagnosingMatcher<T> { @SafeVarargs public AllOf(Matcher<? super T> ... matchers) { this(Arrays.asList(matchers)); } @SafeVarargs  AllOf(Matcher<? super T> ... matchers);  AllOf(Iterable<Matcher<? super T>> matchers); @Override boolean matches(Object o, Description mismatch); @Override void describeTo(Description description); static Matcher<T> allOf(Iterable<Matcher<? super T>> matchers); @SafeVarargs static Matcher<T> allOf(Matcher<? super T>... matchers);  }