Helpers { public static boolean matchCase(String path) { Pattern p = Pattern.compile(".*TestCase$"); Matcher m = p.matcher(path); return m.matches(); }  static boolean matchCase(String path); static boolean matchSuite(String path);  }
@Test public void testMatchCase() { assertTrue(Helpers.matchCase("MonTestCase")); assertTrue(Helpers.matchCase("TestCase")); assertFalse(Helpers.matchCase("MontestCase")); assertFalse(Helpers.matchCase("MonTestcase")); assertFalse(Helpers.matchCase("MonTEstCase")); assertFalse(Helpers.matchCase("UnTestCaseOuPas")); assertFalse(Helpers.matchCase("UneTestSuite")); }