Skip to content

Commit d8d1171

Browse files
BAEL-964 - printing directly to standard output
1 parent 8739094 commit d8d1171

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

‎libraries/src/test/java/com/baeldung/commons/collections/MapUtilsTest.java‎

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,7 @@ public void whenCreateMapFrom1DArray_theMapIsCreated() {
6363

6464
@Test
6565
public void whenVerbosePrintMap_thenMustPrintFormattedMap() {
66-
ByteArrayOutputStream out = new ByteArrayOutputStream();
67-
PrintStream outPrint = new PrintStream(out);
68-
69-
outPrint.println("Optional Label = ");
70-
outPrint.println("{");
71-
outPrint.println(" RED = #FF0000");
72-
outPrint.println(" BLUE = #0000FF");
73-
outPrint.println(" GREEN = #00FF00");
74-
outPrint.println("}");
75-
76-
out.reset();
77-
78-
MapUtils.verbosePrint(outPrint, "Optional Label", this.colorMap);
66+
MapUtils.verbosePrint(System.out, "Optional Label", this.colorMap);
7967
}
8068

8169
@Test

0 commit comments

Comments
 (0)