Skip to content

Commit 7636f29

Browse files
committed
Merge pull request hamcrest#132 from plow/pr-issue-112
Fixed hamcrest#112
2 parents 631e78d + 3c7f6f3 commit 7636f29

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hamcrest-library/src/main/java/org/hamcrest/Matchers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ public static <E> org.hamcrest.Matcher<E[]> arrayContaining(E... items) {
590590
* corresponding matcher in the specified matchers. For a positive match, the examined array
591591
* must be of the same length as the number of specified matchers.
592592
* For example:
593-
* <pre>assertThat(new String[]{"foo", "bar"}, contains(equalTo("foo"), equalTo("bar")))</pre>
593+
* <pre>assertThat(new String[]{"foo", "bar"}, arrayContaining(equalTo("foo"), equalTo("bar")))</pre>
594594
*
595595
* @param itemMatchers
596596
* the matchers that must be satisfied by the items in the examined array
@@ -604,7 +604,7 @@ public static <E> org.hamcrest.Matcher<E[]> arrayContaining(org.hamcrest.Matcher
604604
* corresponding matcher in the specified list of matchers. For a positive match, the examined array
605605
* must be of the same length as the specified list of matchers.
606606
* For example:
607-
* <pre>assertThat(new String[]{"foo", "bar"}, contains(Arrays.asList(equalTo("foo"), equalTo("bar"))))</pre>
607+
* <pre>assertThat(new String[]{"foo", "bar"}, arrayContaining(Arrays.asList(equalTo("foo"), equalTo("bar"))))</pre>
608608
*
609609
* @param itemMatchers
610610
* a list of matchers, each of which must be satisfied by the corresponding item in an examined array

hamcrest-library/src/main/java/org/hamcrest/collection/IsArrayContainingInOrder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static <E> Matcher<E[]> arrayContaining(E... items) {
5959
* corresponding matcher in the specified matchers. For a positive match, the examined array
6060
* must be of the same length as the number of specified matchers.
6161
* For example:
62-
* <pre>assertThat(new String[]{"foo", "bar"}, contains(equalTo("foo"), equalTo("bar")))</pre>
62+
* <pre>assertThat(new String[]{"foo", "bar"}, arrayContaining(equalTo("foo"), equalTo("bar")))</pre>
6363
*
6464
* @param itemMatchers
6565
* the matchers that must be satisfied by the items in the examined array
@@ -77,7 +77,7 @@ public static <E> Matcher<E[]> arrayContaining(Matcher<? super E>... itemMatcher
7777
* corresponding matcher in the specified list of matchers. For a positive match, the examined array
7878
* must be of the same length as the specified list of matchers.
7979
* For example:
80-
* <pre>assertThat(new String[]{"foo", "bar"}, contains(Arrays.asList(equalTo("foo"), equalTo("bar"))))</pre>
80+
* <pre>assertThat(new String[]{"foo", "bar"}, arrayContaining(Arrays.asList(equalTo("foo"), equalTo("bar"))))</pre>
8181
*
8282
* @param itemMatchers
8383
* a list of matchers, each of which must be satisfied by the corresponding item in an examined array

0 commit comments

Comments
 (0)