[MNG-7970] Remove extra space in MavenSimpleLogger stack trace formatter (#1342)

Regular formatted stack traces do not have a space before the file/line
section.

before:
at java.util.zip.ZipFile$Source.get (ZipFile.java:1426)

after:
at java.util.zip.ZipFile$Source.get(ZipFile.java:1426)
This commit is contained in:
Michael Bien 2023-12-15 07:39:42 +01:00 committed by GitHub
parent 2cccc0a476
commit 3c65873b58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ private void printStackTrace(Throwable t, PrintStream stream, String prefix) {
builder.a(e.getClassName());
builder.a(".");
builder.a(e.getMethodName());
builder.a(" (");
builder.a("(");
builder.strong(getLocation(e));
builder.a(")");
stream.println(builder);

View File

@ -51,7 +51,7 @@ void includesCauseAndSuppressedExceptionsWhenWritingThrowables(TestInfo testInfo
Class<?> testClass = testInfo.getTestClass().get();
String testMethodName = testInfo.getTestMethod().get().getName();
String testClassStackTraceLinePattern = "at " + testClass.getName() + "." + testMethodName + " \\("
String testClassStackTraceLinePattern = "at " + testClass.getName() + "." + testMethodName + "\\("
+ testClass.getSimpleName() + ".java:\\d+\\)";
List<String> expectedLines = Arrays.asList(
"java.lang.RuntimeException: top-level",