File tree Expand file tree Collapse file tree
hamcrest-library/src/main/java/org/hamcrest/text Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,10 +42,11 @@ public void describeTo(Description description) {
4242
4343 /**
4444 * Creates a matcher of {@link String} that matches when the examined string contains all of
45- * the specified substrings, regardless of the order of their appearance.
45+ * the specified substrings, considering the order of their appearance.
4646 * <p/>
4747 * For example:
4848 * <pre>assertThat("myfoobarbaz", stringContainsInOrder(Arrays.asList("bar", "foo")))</pre>
49+ * fails as "foo" occurs before "bar" in the string "myfoobarbaz"
4950 *
5051 * @param substrings
5152 * the substrings that must be contained within matching strings
@@ -57,10 +58,11 @@ public static Matcher<String> stringContainsInOrder(Iterable<String> substrings)
5758
5859 /**
5960 * Creates a matcher of {@link String} that matches when the examined string contains all of
60- * the specified substrings, regardless of the order of their appearance.
61+ * the specified substrings, considering the order of their appearance.
6162 * <p/>
6263 * For example:
6364 * <pre>assertThat("myfoobarbaz", stringContainsInOrder("bar", "foo"))</pre>
65+ * fails as "foo" occurs before "bar" in the string "myfoobarbaz"
6466 *
6567 * @param substrings
6668 * the substrings that must be contained within matching strings
You can’t perform that action at this time.
0 commit comments