diff --git a/src/test/java/io/github/nalbion/TestAppenderTest.java b/src/test/java/io/github/nalbion/TestAppenderTest.java index d1f983b..6ba2d4a 100644 --- a/src/test/java/io/github/nalbion/TestAppenderTest.java +++ b/src/test/java/io/github/nalbion/TestAppenderTest.java @@ -45,7 +45,7 @@ void shouldAssertLogsWithStackTrace() { logger.info("Message after stacktrace"); testAppender.assertLogs(line -> - line.replaceAll("java.base/jdk.internal([A-Za-z \\d.(]+)(:\\d+)?\\)", "sun$1)"), + line.replaceAll("(?:java.base/jdk.internal|sun)([A-Za-z \\d.(]+)(:\\d+)?\\)", "sun$1)"), "Hello World!\n" + "Caught exception\n" + "java.lang.RuntimeException: Forced error\n"