Skip to content
Snippets Groups Projects
Commit 11a7768d authored by René Schöne's avatar René Schöne
Browse files

working on slf4j debug messages

- fixed Errors test case after logging changes
parent 6902e32e
No related branches found
No related tags found
1 merge request!26Resolve "Refactor debug messages from System.out to SLF4J"
Pipeline #12577 passed
......@@ -53,10 +53,10 @@ public class Errors {
.collect(Collectors.toList());
Path outPath = TestUtils.runCompiler(grammarFile, connectFiles, rootNode, ERROR_DIRECTORY, 1);
final String startOfErrorsPattern = "SEVERE: Errors:";
final String startOfErrorsPattern = "Errors:\n";
String out = readFile(outPath, Charset.defaultCharset());
assertThat(out).contains(startOfErrorsPattern);
out = out.substring(out.indexOf(startOfErrorsPattern) + 16);
out = out.substring(out.indexOf(startOfErrorsPattern) + startOfErrorsPattern.length());
Path expectedPath = Paths.get(TestUtils.INPUT_DIRECTORY_PREFIX)
.resolve(ERROR_DIRECTORY)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment