- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for indexOf (0.17 sec)
-
maven-core/src/test/resources/apiv4-repo/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar
Tests if the argument is a string that contains a substring. */ public class StringContains extends SubstringMatcher { public StringContains(String substring) { super(substring); } @Override protected boolean evalSubstringOf(String s) { return s.indexOf(substring) >= 0; } @Override protected String relationship() { return "containing"; } /** * Creates a matcher that matches if the examined {@link String} contains the specified * {@link String} anywhere. * <p/> * For example: * <pre>assertThat("myStringOfNote",...
Archive - Registered: Sun Apr 14 03:35:08 GMT 2024 - Last Modified: Sun Oct 02 08:41:25 GMT 2022 - 31.9K bytes - Viewed (0)