Helpers { public static boolean matchSuite(String path) { Pattern p = Pattern.compile(".*TestSuite$"); Matcher m = p.matcher(path); return m.matches(); }  static boolean matchCase(String path); static boolean matchSuite(String path);  }
@Test public void testMatchSuite() { assertTrue(Helpers.matchSuite("UneTestSuite")); assertTrue(Helpers.matchSuite("TestSuite")); assertFalse(Helpers.matchSuite("MatestSuite")); assertFalse(Helpers.matchSuite("MaTestsuite")); assertFalse(Helpers.matchSuite("MaTEstSuite")); assertFalse(Helpers.matchSuite("UneTestSuiteOuPas")); assertFalse(Helpers.matchSuite("UnTestCase")); }