elharo commented on code in PR #768:
URL: https://github.com/apache/maven-surefire/pull/768#discussion_r1718500008


##########
surefire-its/src/test/java/org/apache/maven/surefire/its/JUnit47RedirectOutputIT.java:
##########
@@ -46,11 +45,11 @@ public void testClassesParallel() {
     }
 
     private void checkReports(OutputValidator validator) {
-        String report = StringUtils.trimToNull(validator
+        String report = trimToNull(validator
                 
.getSurefireReportsFile("junit47ConsoleOutput.Test1-output.txt")
                 .readFileToString());
         assertNotNull(report);
-        String report2 = StringUtils.trimToNull(validator
+        String report2 = trimToNull(validator

Review Comment:
   This is test code. The output and input should be fully reproducible as 
either null or not null, so we likely don't need any of this empty to null 
conversion here. Depending on what the output is either simply remove 
trimToNull, or remove trimToNull and expect an empty string instead of null. 
Much simpler. 



-- 
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: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to