summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManoop Talasila <talasila@research.att.com>2018-10-09 19:21:24 +0000
committerGerrit Code Review <gerrit@onap.org>2018-10-09 19:21:24 +0000
commit4dff184dc17c0503e85f50bb15c012ea7237308a (patch)
tree424ea3858962b71d6053003dbd989f1b7e53f747
parent8508b1432c0172fa0974d3718f458efbf6c2575a (diff)
parent3b559db5b7a5f3c4edc00554480d6e0a314c5c48 (diff)
Merge "added test cases to RowHeaderTest"
-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());
+ }
}