containsString

Creates a matcher that matches if the examined String contains the specified String anywhere. For example:

assertThat("myStringOfNote", containsString("ring"))

Parameters

substring

the substring that the returned matcher will expect to find within any examined string