void () { String expectedFileName = FileUtil.toSystemDependentName("C:\\path\\to\\MyFile.kt"); String expectedMessage = "Data class primary constructor must have only property (val / var) parameters"; testCase(""" [INFO] --- kotlin-maven-plugin:1.3.21:compile (compile) @ test-11 --- [ERROR] C:\\path\\to\\MyFile.kt: (3, 16) Data class primary constructor must have only property (val / var) parameters [INFO] ------------------------------------------------------------------------""") .withParsers(new KotlinBuildErrorNotification()) .expect(expectedMessage, new FileEventMatcher(expectedMessage, expectedFileName, 2, 15)) .withSkippedOutput() .check(); }