From 3b559db5b7a5f3c4edc00554480d6e0a314c5c48 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Wed, 26 Sep 2018 17:21:29 +0530 Subject: added test cases to RowHeaderTest to increase code coverage Issue-ID: PORTAL-273 Change-Id: Ic6006b8ea10e9309a13f61bb8d8c76cd69ad49d5 Signed-off-by: Sandeep J --- .../portalsdk/analytics/view/RowHeaderTest.java | 35 ++++++++++++---------- 1 file changed, 20 insertions(+), 15 deletions(-) (limited to 'ecomp-sdk') 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()); + } } -- cgit 1.2.3-korg