BAEL-964 - printing directly to standard output
This commit is contained in:
parent
8739094a16
commit
d8d1171afa
@ -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…
x
Reference in New Issue
Block a user