Merge pull request #2268 from eugenp/bael-964-commons-map-util
BAEL-964 - printing directly to standard output
This commit is contained in:
commit
fdcb6a8cf9
|
@ -63,19 +63,7 @@ public class MapUtilsTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenVerbosePrintMap_thenMustPrintFormattedMap() {
|
public void whenVerbosePrintMap_thenMustPrintFormattedMap() {
|
||||||
ByteArrayOutputStream out = new ByteArrayOutputStream();
|
MapUtils.verbosePrint(System.out, "Optional Label", this.colorMap);
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue