StringContainsSearchMatcher implements SearchMatcher { @Override public boolean matches(LogData logData) { return StringUtils.contains(StringUtils.lowerCase(logData.getMessage()), searchChar); } StringContainsSearchMatcher(String searchChar); @Override boolean matches(LogData logData); @Override ArrayList<String> getFoundTextFragments(LogData logData);  }
@Test public void testMatches() { assertEquals(true, matcher.matches(logData)); }
@Test public void testMatchesIgnoreCase() { assertEquals(true, matcher.matches(logDataUpperCase)); }