Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/SearchResultPageTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/SearchResultPageTest.java b/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/SearchResultPageTest.java
index feda1f397..9475b77e3 100644
--- a/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/SearchResultPageTest.java
+++ b/org.eclipse.search.tests/src/org/eclipse/search/tests/filesearch/SearchResultPageTest.java
@@ -129,7 +129,7 @@ public class SearchResultPageTest {
int itemCount= result.getMatchCount(element);
assertTrue(itemCount > 0);
if (itemCount > 1)
- assertTrue(item.getText().indexOf(String.valueOf(itemCount)) >= 0);
+ assertTrue(item.getText().contains(String.valueOf(itemCount)));
}
@Test

Back to the top