Migrate from jackson to micronaut serde

This commit is contained in:
Stephan Schnabel 2023-07-19 14:58:11 +02:00
parent 071fcd969b
commit cccca4bfff
Signed by: stephan.schnabel
GPG key ID: E07AF5BA239FE543
16 changed files with 127 additions and 8 deletions

View file

@ -0,0 +1,21 @@
// verify log
String expected = "^\\{\"timestamp\":\"[0-9]{13}\",\"level\":\"INFO\",\"thread\":\"main\",\"logger\":\"io.kokuwa.micronaut.logging.LoggingTest\",\"message\":\"test-output-marker\",\"raw-message\":\"test-output-marker\"}$";
String[] logs = org.codehaus.plexus.util.FileUtils.fileRead(basedir + "/build.log").split("\n");
for (String log : logs) {
if (!log.contains("test-output-marker")) {
continue;
}
if (java.util.regex.Pattern.matches(expected, log)) {
return true;
} else {
System.out.println("marker found, but formatting invalid:");
System.out.println("[EXPECTED] " + expected);
System.out.println("[ACTUAL] " + log);
return false;
}
}
System.out.println("marker not found");
return false;