diff options
-rw-r--r-- | framework/src/test/java/org/onap/cli/fw/output/print/TableGeneratorTest.java | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/framework/src/test/java/org/onap/cli/fw/output/print/TableGeneratorTest.java b/framework/src/test/java/org/onap/cli/fw/output/print/TableGeneratorTest.java index 58ff4751..7622ff5f 100644 --- a/framework/src/test/java/org/onap/cli/fw/output/print/TableGeneratorTest.java +++ b/framework/src/test/java/org/onap/cli/fw/output/print/TableGeneratorTest.java @@ -54,32 +54,19 @@ public class TableGeneratorTest { System.out.println(result); String expected = "+----------+----------+\n|column1 |column2 |\n+----------+----------+\n"; assertEquals(expected, result); - } - - @Test - public void printTableNullCellTest() { - System.out.println("printTableNullCellTest..."); - List<List<Object>> rows = new ArrayList<List<Object>>(); - rows.add(Arrays.asList(new Object[] { "column1", "column2" })); rows.add(Arrays.asList(new Object[] { "value1", null })); - String result = table.generateTable(rows, true); + result = table.generateTable(rows, true); System.out.println(result); - String expected = "+----------+----------+\n" + "|column1 |column2 |\n" + "+----------+----------+\n" + expected = "+----------+----------+\n" + "|column1 |column2 |\n" + "+----------+----------+\n" + "|value1 | |\n" + "+----------+----------+\n"; assertEquals(expected, result); - } - - @Test - public void printTableEmptyCellTest() { - System.out.println("printTableEmptyCellTest..."); - List<List<Object>> rows = new ArrayList<List<Object>>(); - rows.add(Arrays.asList(new Object[] { "column1", "column2" })); rows.add(Arrays.asList(new Object[] { "value1", "" })); - String result = table.generateTable(rows, true); + result = table.generateTable(rows, true); System.out.println(result); - String expected = "+----------+----------+\n" + "|column1 |column2 |\n" + "+----------+----------+\n" + expected = "+----------+----------+\n" + "|column1 |column2 |\n" + "+----------+----------+\n" + + "|value1 | |\n" + "+----------+----------+\n" + "|value1 | |\n" + "+----------+----------+\n"; assertEquals(expected, result); } |