void () { String expectedFileName = FileUtil.toSystemDependentName("C:/path/to/MyFile.java"); String expectedMessage = "';' expected"; testCase(""" [INFO] ------------------------------------------------------------- [ERROR] /C:/path/to/MyFile.java:[13,21] ';' expected [INFO] 1 error""") .withParsers(new JavaBuildErrorNotification()) .expect(expectedMessage, new FileEventMatcher(expectedMessage, expectedFileName, 12, 20)) .withSkippedOutput() .check(); }