summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-05-09 11:38:09 +0000
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-05-09 11:38:09 +0000
commit120d874094d4eb4fd7104d8a6dbb155709a9869d (patch)
tree3c66e9f379f4651a593b73165f90cc815e9ab562 /framework
parent4bfd5e7fce67fb812db97158448e160a586ca8b6 (diff)
Remove unsed vars from Print testing
Issue-ID: CLI-100 Change-Id: I76ccc1ed1c0860eac6f57cf7621b6a4f3493ce3d Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/src/test/java/org/onap/cli/fw/output/print/OnapCommandPrintTest.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/framework/src/test/java/org/onap/cli/fw/output/print/OnapCommandPrintTest.java b/framework/src/test/java/org/onap/cli/fw/output/print/OnapCommandPrintTest.java
index 812e58e2..850d31e7 100644
--- a/framework/src/test/java/org/onap/cli/fw/output/print/OnapCommandPrintTest.java
+++ b/framework/src/test/java/org/onap/cli/fw/output/print/OnapCommandPrintTest.java
@@ -20,7 +20,6 @@ import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.Arrays;
-import java.util.List;
import org.junit.Ignore;
import org.junit.Test;
@@ -44,39 +43,34 @@ public class OnapCommandPrintTest {
@Test
public void printTableTest() throws OnapCommandOutputPrintingFailed {
OnapCommandPrint pr = new OnapCommandPrint();
- List<String> getColumnsData = new ArrayList<String>();
+
pr.setDirection(OnapCommandPrintDirection.LANDSCAPE);
pr.setPrintTitle(true);
pr.addColumn("name2", new ArrayList<String>(Arrays.asList(new String[] { "value2" })));
String exp = "+--------+\n|name2 |\n+--------+\n|value2 |\n+--------+\n";
String result = pr.printTable(true);
- getColumnsData = pr.getColumn("name2");
assertEquals(exp, result);
}
@Test
public void printTableNullColumnHeaderTest() throws OnapCommandOutputPrintingFailed {
OnapCommandPrint pr = new OnapCommandPrint();
- List<String> getColumnsData = new ArrayList<String>();
pr.setDirection(OnapCommandPrintDirection.LANDSCAPE);
pr.setPrintTitle(true);
pr.addColumn("name2", new ArrayList<String>(Arrays.asList(new String[] { "value2" })));
String exp = "+--------+\n|name2 |\n+--------+\n|value2 |\n+--------+\n";
String result = pr.printTable(true);
- getColumnsData = pr.getColumn(null);
assertEquals(exp, result);
}
@Test
public void printTableEmptyColumnValuesTest() throws OnapCommandOutputPrintingFailed {
OnapCommandPrint pr = new OnapCommandPrint();
- List<String> getColumnsData = new ArrayList<String>();
pr.setDirection(OnapCommandPrintDirection.LANDSCAPE);
pr.setPrintTitle(true);
pr.addColumn("name2", new ArrayList<String>(Arrays.asList(new String[] { "" })));
String exp = "+--------+\n|name2 |\n+--------+\n| |\n+--------+\n";
String result = pr.printTable(true);
- getColumnsData = pr.getColumn("name2");
assertEquals(exp, result);
}
}