mirror of https://github.com/apache/maven.git
[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:
parent
2cccc0a476
commit
3c65873b58
|
@ -83,7 +83,7 @@ public class MavenSimpleLogger extends SimpleLogger {
|
|||
builder.a(e.getClassName());
|
||||
builder.a(".");
|
||||
builder.a(e.getMethodName());
|
||||
builder.a(" (");
|
||||
builder.a("(");
|
||||
builder.strong(getLocation(e));
|
||||
builder.a(")");
|
||||
stream.println(builder);
|
||||
|
|
|
@ -51,7 +51,7 @@ class MavenSimpleLoggerTest {
|
|||
|
||||
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",
|
||||
|
|
Loading…
Reference in New Issue