summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-analytics/src
diff options
context:
space:
mode:
authorIndrijeet kumar <indriku1@in.ibm.com>2020-02-02 16:56:50 +0530
committerIndrijeet kumar <indriku1@in.ibm.com>2020-02-02 17:02:36 +0530
commit1e7176f27d5b329fcedc3bbe395513650f439bcb (patch)
treeb0010ace6513611c15a0476adef37b7c769af7fc /ecomp-sdk/epsdk-analytics/src
parent2edccd7e8ef958d4891ba6de87a449daeb7593fe (diff)
testing confirmationText method
testing confirmationText method in SearchResultField comp Issue-ID: PORTAL-814 Change-Id: I54a3bc30d3899b526bb8f5599375d693cafcfffb Signed-off-by: Indrijeet Kumar <indriku1@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-analytics/src')
-rw-r--r--ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/model/search/SearchResultFieldTest.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/model/search/SearchResultFieldTest.java b/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/model/search/SearchResultFieldTest.java
index 0bfa747b..0f893eb0 100644
--- a/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/model/search/SearchResultFieldTest.java
+++ b/ecomp-sdk/epsdk-analytics/src/test/java/org/onap/portalsdk/analytics/model/search/SearchResultFieldTest.java
@@ -34,6 +34,22 @@ public class SearchResultFieldTest {
searchResultField = new SearchResultField();
}
+ @Test
+ public void testSetConfirmationText() {
+ searchResultField.setConfirmationText("test");
+ String expected;
+ expected=searchResultField.getConfirmationText();
+ assertEquals(expected,"test");
+ }
+
+ @Test
+ public void testSetDrillDownImage() {
+ searchResultField.setDrillDownImage("confirm");
+ String expected;
+ expected=searchResultField.getDrillDownImage();
+ assertEquals(expected,"confirm");
+ }
+
@Test
public void testValuesWhenColumnIdIsEdit() {
SearchResultColumn col = new SearchResultColumn("edit", "Column1", "10", "left",