@Test public void shrink_whitespaces() { assertEquals("iwillbeshrinked", resolverToTest.toRelevantPart("i will be shrinked")); assertEquals("iwillbeshrinked", resolverToTest.toRelevantPart("i will be shrinked")); assertEquals("iwillbeshrinked", resolverToTest.toRelevantPart("i will beshrinked")); assertEquals("iwillbeshrinked", resolverToTest.toRelevantPart("i will\t\tbeshrinked")); assertEquals("iwillbeshrinked", resolverToTest.toRelevantPart("i will\t\nbeshrinked\n ")); }
public String toRelevantPart(String source) { String result = P.matcher(source).replaceAll(""); return result.toLowerCase(); }
SerecoSourceRelevantPartResolver { public String toRelevantPart(String source) { String result = P.matcher(source).replaceAll(""); return result.toLowerCase(); } }
SerecoSourceRelevantPartResolver { public String toRelevantPart(String source) { String result = P.matcher(source).replaceAll(""); return result.toLowerCase(); }  }
SerecoSourceRelevantPartResolver { public String toRelevantPart(String source) { String result = P.matcher(source).replaceAll(""); return result.toLowerCase(); }  String toRelevantPart(String source); }
SerecoSourceRelevantPartResolver { public String toRelevantPart(String source) { String result = P.matcher(source).replaceAll(""); return result.toLowerCase(); }  String toRelevantPart(String source);  }