Skip to content

Instantly share code, notes, and snippets.

@ultimate-qa2
Created March 28, 2021 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ultimate-qa2/27cc739fdc003338a5ef9f39673dd491 to your computer and use it in GitHub Desktop.
Save ultimate-qa2/27cc739fdc003338a5ef9f39673dd491 to your computer and use it in GitHub Desktop.
@Test
public void stringContains() {
String longString = "This is a long sentence that contains some words";
String shortString = "some words";
Assert.assertTrue(longString.contains(shortString));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment