Tibor17 commented on a change in pull request #452:
URL: https://github.com/apache/maven-surefire/pull/452#discussion_r794536083
##########
File path:
surefire-api/src/main/java/org/apache/maven/surefire/api/report/LegacyPojoStackTraceWriter.java
##########
@@ -81,10 +79,15 @@ public String smartTrimmedStackTrace()
result.append( "#" );
result.append( testMethod );
SafeThrowable throwable = getThrowable();
+ final String excClassName = throwable.getTarget().getClass().getName();
if ( throwable.getTarget() instanceof AssertionError )
+ if ( throwable.getTarget() instanceof AssertionError
Review comment:
@sman-81
I am not sure why the author of `smartTrimmedStackTrace()` ignores other
exceptions. Try to open a new PR and try to turn the IF statement to:
`if ( throwable.getTarget() != null )`
I want to know if the old code makes strong sense to the tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]