summaryrefslogtreecommitdiffstats
path: root/appc-config/appc-flow-controller/provider
diff options
context:
space:
mode:
authorJoss Armstrong <joss.armstrong@ericsson.com>2019-02-26 11:50:20 +0000
committerTakamune Cho <takamune.cho@att.com>2019-02-26 15:19:04 +0000
commite87a189e91adfa04482363a9057c4a24fe1b03bd (patch)
treee51ca1fa721f888fa501b5e71e920b21c50ded90 /appc-config/appc-flow-controller/provider
parentc937e33451a3e609a838d0f0283fb1f925f9b83d (diff)
Test coverage for Parameters
Increased coverage to 100% Issue-ID: APPC-1499 Change-Id: I982023d9f818320f709da552d668b68e5ce0f7b3 Signed-off-by: Joss Armstrong <joss.armstrong@ericsson.com>
Diffstat (limited to 'appc-config/appc-flow-controller/provider')
-rw-r--r--appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/ParametersTest.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/ParametersTest.java b/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/ParametersTest.java
index 729efd8d3..c17b642e9 100644
--- a/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/ParametersTest.java
+++ b/appc-config/appc-flow-controller/provider/src/test/java/org/onap/appc/flow/controller/data/ParametersTest.java
@@ -3,6 +3,8 @@
* ONAP : APPC
* ================================================================================
* Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Modifications Copyright (C) 2019 Ericsson
* =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -73,7 +75,18 @@ public class ParametersTest {
@Test
public void testEqualsObject() {
assertTrue(param1.equals(param2) && param2.equals(param1));
- assertTrue(param1.equals(param1));
assertFalse(param1.equals(null));
+ assertFalse(param1.equals(""));
+ param2.setParamName("other_param_name");
+ assertFalse(param1.equals(param2));
+ param1.setParamName("param_name");
+ assertFalse(param1.equals(param2));
+ param2.setParamName("param_name");
+ param2.setParamValue("other_param_value");
+ assertFalse(param1.equals(param2));
+ param1.setParamValue("param_value");
+ assertFalse(param1.equals(param2));
+ param2.setParamValue("param_value");
+ assertTrue(param1.equals(param1));
}
}