9
9
import static org .hamcrest .core .IsInstanceOf .instanceOf ;
10
10
11
11
/**
12
- * Decorates another Matcher, retaining the behavior but allowing tests
12
+ * Decorates another Matcher, retaining the behaviour but allowing tests
13
13
* to be slightly more expressive.
14
14
*
15
15
* For example: assertThat(cheese, equalTo(smelly))
@@ -38,7 +38,7 @@ public void describeMismatch(Object item, Description mismatchDescription) {
38
38
}
39
39
40
40
/**
41
- * Decorates another Matcher, retaining the behavior but allowing tests
41
+ * Decorates another Matcher, retaining its behaviour, but allowing tests
42
42
* to be slightly more expressive.
43
43
*
44
44
* For example: assertThat(cheese, equalTo(smelly))
@@ -50,7 +50,7 @@ public static <T> Matcher<T> is(Matcher<T> matcher) {
50
50
}
51
51
52
52
/**
53
- * This is a shortcut to the frequently used is(equalTo(x)).
53
+ * A shortcut to the frequently used is(equalTo(x)).
54
54
*
55
55
* For example: assertThat(cheese, is(equalTo(smelly)))
56
56
* vs. assertThat(cheese, is(smelly))
@@ -61,7 +61,7 @@ public static <T> Matcher<T> is(T value) {
61
61
}
62
62
63
63
/**
64
- * This is a shortcut to the frequently used is(instanceOf(SomeClass.class)).
64
+ * A shortcut to the frequently used is(instanceOf(SomeClass.class)).
65
65
*
66
66
* For example: assertThat(cheese, is(instanceOf(Cheddar.class)))
67
67
* vs. assertThat(cheese, is(Cheddar.class))
0 commit comments