Tibor17 commented on a change in pull request #457:
URL: https://github.com/apache/maven-surefire/pull/457#discussion_r799575211



##########
File path: 
surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/SmartStackTraceParser.java
##########
@@ -133,23 +130,19 @@ public String getString()
         final String excClassName = excType.getName();
         final String msg = throwable.getMessage();
 
-        if ( target instanceof AssertionError
-                || "junit.framework.AssertionFailedError".equals( excClassName 
)
-                || "junit.framework.ComparisonFailure".equals( excClassName )
-                || excClassName.startsWith( "org.opentest4j." ) )
-        {
-            if ( isNotEmpty( msg ) )
-            {
-                result.append( ' ' )
-                    .append( msg );
-            }
-        }
-        else
+        if ( ! ( AssertionError.class.isInstance( target )
+                || excClassName.endsWith( ".AssertionFailedError" )
+                || excClassName.endsWith( ".ComparisonFailure" )
+                || excClassName.startsWith( "org.opentest4j." ) ) )
         {
             result.append( rootIsInclass() ? " " : " ยป " )
-                    .append( toMinimalThrowableMiniMessage( excType ) );
+                  .append( toMinimalThrowableMiniMessage( excType ) );
+        }
 
-            result.append( truncateMessage( msg, MAX_LINE_LENGTH - 
result.length() ) );
+        if ( isNotEmpty( msg ) )
+        {
+            result.append( ' ' )
+                  .append( msg.split( "\r?\n" )[0] );

Review comment:
       The same here.




-- 
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]


Reply via email to