Home
last modified time | relevance | path

Searched refs:WithValue (Results 1 – 3 of 3) sorted by relevance

/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
DIsIterableContainingInOrderTest.java17 …private final Matcher<Iterable<? extends WithValue>> contains123 = contains(value(1), value(2), va…
37 List<WithValue> valueList = asList(make(1), make(2)); in testDoesNotMatchWithFewerElementsThanExpected()
50 …tMismatchDescription("no item was value with <4>", contains(value(4)), new ArrayList<WithValue>()); in testDoesNotMatchEmptyIterable()
61 public static class WithValue { class in IsIterableContainingInOrderTest
63 public WithValue(int value) { this.value = value; } in WithValue() method in IsIterableContainingInOrderTest.WithValue
68 public static WithValue make(int value) { in make()
69 return new WithValue(value); in make()
72 public static Matcher<WithValue> value(int value) { in value()
73 return new FeatureMatcher<WithValue, Integer>(equalTo(value), "value with", "value") { in value()
74 @Override protected Integer featureValueOf(WithValue actual) { return actual.getValue(); } in value()
DIsIterableContainingInRelativeOrderTest.java17 …private final Matcher<Iterable<? extends WithValue>> contains123 = containsInRelativeOrder(value(1…
57 List<WithValue> valueList = asList(make(1), make(2)); in testDoesNotMatchWithFewerElementsThanExpected()
70 …ion("value with <4> was not found", containsInRelativeOrder(value(4)), new ArrayList<WithValue>()); in testDoesNotMatchEmptyIterable()
77 public static class WithValue { class in IsIterableContainingInRelativeOrderTest
79 public WithValue(int value) { this.value = value; } in WithValue() method in IsIterableContainingInRelativeOrderTest.WithValue
84 public static WithValue make(int value) { in make()
85 return new WithValue(value); in make()
88 public static Matcher<WithValue> value(int value) { in value()
89 return new FeatureMatcher<WithValue, Integer>(equalTo(value), "value with", "value") { in value()
90 @Override protected Integer featureValueOf(WithValue actual) { return actual.getValue(); } in value()
DIsIterableContainingInAnyOrderTest.java5 import org.hamcrest.collection.IsIterableContainingInOrderTest.WithValue;
43 …final Matcher<Iterable<? extends WithValue>> helpTheCompilerOut = containsInAnyOrder(value(1), val… in testDoesNotMatchIfThereAreMoreElementsThanMatchers()