This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/main by this push:
     new 0bcb8a6a39 fix(shell): normalize line endings in testColoredTable for 
Windows compatibility (#2318)
0bcb8a6a39 is described below

commit 0bcb8a6a3974635d804ba9f244c176972c282679
Author: JB Onofré <[email protected]>
AuthorDate: Sat Mar 14 06:46:25 2026 +0100

    fix(shell): normalize line endings in testColoredTable for Windows 
compatibility (#2318)
    
    Use getString() helper to normalize \r\n to \n in the colored table
    test assertion, consistent with other tests in the same class.
---
 .../test/java/org/apache/karaf/shell/support/table/ShellTableTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/shell/core/src/test/java/org/apache/karaf/shell/support/table/ShellTableTest.java
 
b/shell/core/src/test/java/org/apache/karaf/shell/support/table/ShellTableTest.java
index dd14beb782..cba441b560 100644
--- 
a/shell/core/src/test/java/org/apache/karaf/shell/support/table/ShellTableTest.java
+++ 
b/shell/core/src/test/java/org/apache/karaf/shell/support/table/ShellTableTest.java
@@ -131,7 +131,7 @@ public class ShellTableTest {
         table.print(new PrintStream(baos), false);
         assertEquals("Normal          \tThis should have default color\n" +
                        "Active          \tGreen color\n" +
-                       "This is Resolved\tYellow color\n", 
baos.toString());
+                       "This is Resolved\tYellow color\n", 
getString(baos));
     }
 
     @Test

Reply via email to