Merge pull request #2268 from eugenp/bael-964-commons-map-util

BAEL-964 - printing directly to standard output
This commit is contained in:
slavisa-baeldung 2017-07-15 21:58:56 +02:00 committed by GitHub
commit fdcb6a8cf9
1 changed files with 1 additions and 13 deletions

View File

@ -63,19 +63,7 @@ public class MapUtilsTest {
@Test
public void whenVerbosePrintMap_thenMustPrintFormattedMap() {
ByteArrayOutputStream out = new ByteArrayOutputStream();
PrintStream outPrint = new PrintStream(out);
outPrint.println("Optional Label = ");
outPrint.println("{");
outPrint.println(" RED = #FF0000");
outPrint.println(" BLUE = #0000FF");
outPrint.println(" GREEN = #00FF00");
outPrint.println("}");
out.reset();
MapUtils.verbosePrint(outPrint, "Optional Label", this.colorMap);
MapUtils.verbosePrint(System.out, "Optional Label", this.colorMap);
}
@Test