aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2018-11-28 22:03:35 +0000
committerGerrit Code Review <gerrit@onap.org>2018-11-28 22:03:35 +0000
commitc53d1574fc2205e6555f0da1a58933e9e2761d5a (patch)
tree7202a25173edc721c9f43fb682500d223337d967
parented958ca3dac22c891eb1342bcab5f72b864e54bc (diff)
parentbde1518add90a10abe541cf8b873554094e68e70 (diff)
Merge "added test file to test PolicyEngineResponse.java"
-rw-r--r--ms/vlantag-api/src/test/java/org/onap/ccsdk/apps/ms/vlantagapi/core/extinf/pm/model/PolicyEngineResponseTest.java112
1 files changed, 112 insertions, 0 deletions
diff --git a/ms/vlantag-api/src/test/java/org/onap/ccsdk/apps/ms/vlantagapi/core/extinf/pm/model/PolicyEngineResponseTest.java b/ms/vlantag-api/src/test/java/org/onap/ccsdk/apps/ms/vlantagapi/core/extinf/pm/model/PolicyEngineResponseTest.java
new file mode 100644
index 00000000..c6de216d
--- /dev/null
+++ b/ms/vlantag-api/src/test/java/org/onap/ccsdk/apps/ms/vlantagapi/core/extinf/pm/model/PolicyEngineResponseTest.java
@@ -0,0 +1,112 @@
+/*******************************************************************************
+ * Copyright © 2018 IBM.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************
+*/
+
+package org.onap.ccsdk.apps.ms.vlantagapi.core.extinf.pm.model;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.junit.Before;
+import org.junit.Test;
+
+public class PolicyEngineResponseTest {
+
+ private PolicyEngineResponse policyEngineResponse;
+
+ @Before
+ public void setUp()
+ {
+ policyEngineResponse= new PolicyEngineResponse();
+ }
+
+ @Test
+ public void testGetSetPolicyConfigMessage()
+ {
+ policyEngineResponse.setPolicyConfigMessage("policyConfigMessage");
+ assertEquals("policyConfigMessage", policyEngineResponse.getPolicyConfigMessage());
+ }
+
+ @Test
+ public void testGetSetPolicyConfigStatus()
+ {
+ policyEngineResponse.setPolicyConfigStatus("PolicyConfigStatus");
+ assertEquals("PolicyConfigStatus", policyEngineResponse.getPolicyConfigStatus());
+ }
+
+ @Test
+ public void testGetSetType()
+ {
+ policyEngineResponse.setType("Type");
+ assertEquals("Type", policyEngineResponse.getType());
+ }
+
+ @Test
+ public void testGetSetPolicyName()
+ {
+ policyEngineResponse.setPolicyName("PolicyName");
+ assertEquals("PolicyName", policyEngineResponse.getPolicyName());
+ }
+
+ @Test
+ public void testGetSetPolicyType()
+ {
+ policyEngineResponse.setPolicyType("PolicyType");
+ assertEquals("PolicyType", policyEngineResponse.getPolicyType());
+ }
+
+ @Test
+ public void testGetSetPolicyVersion()
+ {
+ policyEngineResponse.setPolicyVersion("PolicyVersion");
+ assertEquals("PolicyVersion", policyEngineResponse.getPolicyVersion());
+ }
+
+ @Test
+ public void testGetSetMatchingConditions()
+ {
+ HashMap<String, String> test= new HashMap<>();
+ policyEngineResponse.setMatchingConditions(test);
+ assertEquals(test, policyEngineResponse.getMatchingConditions());
+ }
+
+
+ @Test
+ public void testGetSetResponseAttributes()
+ {
+ HashMap<String, String> test= new HashMap<>();
+ policyEngineResponse.setResponseAttributes(test);
+ assertEquals(test, policyEngineResponse.getResponseAttributes());
+ }
+
+ @Test
+ public void testGetSetProperty()
+ {
+ policyEngineResponse.setProperty("Property");
+ assertEquals("Property", policyEngineResponse.getProperty());
+ }
+
+ @Test
+ public void testToString()
+ {
+ assertTrue(policyEngineResponse.toString() instanceof String);
+ }
+
+
+}