Lines Matching defs:is
15 * vs. assertThat(cheese, is(equalTo(smelly)))
31 description.appendText("is ").appendDescriptionOf(matcher);
43 * <pre>assertThat(cheese, is(equalTo(smelly)))</pre>
48 public static <T> Matcher<T> is(Matcher<T> matcher) {
53 * A shortcut to the frequently used <code>is(equalTo(x))</code>.
55 * <pre>assertThat(cheese, is(smelly))</pre>
57 * <pre>assertThat(cheese, is(equalTo(smelly)))</pre>
60 public static <T> Matcher<T> is(T value) {
61 return is(equalTo(value));
65 * A shortcut to the frequently used <code>is(instanceOf(SomeClass.class))</code>.
69 * <pre>assertThat(cheese, is(instanceOf(Cheddar.class)))</pre>
74 return is(typeMatcher);