summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-09-26 17:21:29 +0530
committerSandeep J <sandeejh@in.ibm.com>2018-09-26 17:21:50 +0530
commit3b559db5b7a5f3c4edc00554480d6e0a314c5c48 (patch)
tree732966de65d411f4e00c1a6d4ed98237fab4b032
parentafb7e4d6b9895146d5d7e27a7568a6360ca50ce3 (diff)
added test cases to RowHeaderTest
to increase code coverage Issue-ID: PORTAL-273 Change-Id: Ic6006b8ea10e9309a13f61bb8d8c76cd69ad49d5 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
-rw-r--r--ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/view/RowHeaderTest.java35
1 files changed, 20 insertions, 15 deletions
diff --git a/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/view/RowHeaderTest.java b/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/view/RowHeaderTest.java
index 6578ad6a..61d8d6d6 100644
--- a/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/view/RowHeaderTest.java
+++ b/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/view/RowHeaderTest.java
@@ -5,7 +5,8 @@
* ===================================================================
* Copyright © 2017 AT&T Intellectual Property. All rights reserved.
* ===================================================================
- *
+ * Modifications Copyright © 2018 IBM.
+ * ===================================================================
* Unless otherwise specified, all software contained herein is licensed
* under the Apache License, Version 2.0 (the "License");
* you may not use this software except in compliance with the License.
@@ -43,18 +44,22 @@ import org.junit.Test;
public class RowHeaderTest {
- @Test
- public void mockRowHeaderTest() {
- RowHeader rowHeader = new RowHeader();
- rowHeader.setRowTitle("rowTitle");
- rowHeader.setRowHeight("rowHeight");
- rowHeader.setRowSpan(1);
- rowHeader.setColSpan(1);
- rowHeader.setBold(false);
- assertEquals(rowHeader.getRowTitle(), "rowTitle");
- assertEquals(rowHeader.getRowHeight(), "rowHeight");
- assertEquals(rowHeader.getRowSpan(), 1);
- assertEquals(rowHeader.getColSpan(), 1);
- assertFalse(rowHeader.isBold());
- }
+ @Test
+ public void mockRowHeaderTest() {
+ RowHeader rowHeader = new RowHeader();
+ rowHeader.setRowTitle("rowTitle");
+ rowHeader.setRowHeight("rowHeight");
+ rowHeader.setRowSpan(1);
+ rowHeader.setColSpan(1);
+ rowHeader.setBold(false);
+ assertEquals("rowTitle", rowHeader.getRowTitleHtml());
+ assertEquals(" height=rowHeight", rowHeader.getRowHeightHtml());
+ assertEquals("", rowHeader.getRowSpanHtml());
+ assertEquals("", rowHeader.getColSpanHtml());
+ assertEquals(rowHeader.getRowTitle(), "rowTitle");
+ assertEquals(rowHeader.getRowHeight(), "rowHeight");
+ assertEquals(rowHeader.getRowSpan(), 1);
+ assertEquals(rowHeader.getColSpan(), 1);
+ assertFalse(rowHeader.isBold());
+ }
}