Code sample:
@Test(expected = NoMatchFoundException.class) public void testGetRenamedFilePathWorstCase() throws NoMatchFoundException { String logEntry = " A /my/folder/with/a/file.txt"; RegExMatcher instance = new RegExMatcher(); String actual = instance.getRenamedFilePath(logEntry); fail("Should have raised a NoMatchFoundException."); } |