diff options
author | Bharath Balasubramanian <bharathb@research.att.com> | 2019-01-30 22:32:41 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-01-30 22:32:41 +0000 |
commit | b146c72f951cdbcecf1e3e726956082d9d8cf4b0 (patch) | |
tree | aa084d628979fe1d90dcdc3aabef37f294fb9c17 /src/test/java/org/onap/music/unittests/jsonobjects | |
parent | 0e6a4dc0f90f9589e3830c8976a39f627acd10c7 (diff) | |
parent | a27be9fdbbf2d271c9c5780ba70fe15a24dbdb63 (diff) |
Merge "Push variuos changes"
Diffstat (limited to 'src/test/java/org/onap/music/unittests/jsonobjects')
8 files changed, 6 insertions, 162 deletions
diff --git a/src/test/java/org/onap/music/unittests/jsonobjects/JsonDeleteTest.java b/src/test/java/org/onap/music/unittests/jsonobjects/JsonDeleteTest.java index 885694bd..4c5af38f 100644 --- a/src/test/java/org/onap/music/unittests/jsonobjects/JsonDeleteTest.java +++ b/src/test/java/org/onap/music/unittests/jsonobjects/JsonDeleteTest.java @@ -19,6 +19,7 @@ * ============LICENSE_END============================================= * ==================================================================== */ + package org.onap.music.unittests.jsonobjects; import static org.junit.Assert.*; diff --git a/src/test/java/org/onap/music/unittests/jsonobjects/JsonKeySpaceTest.java b/src/test/java/org/onap/music/unittests/jsonobjects/JsonKeySpaceTest.java index 882d5d5e..0f4abd7c 100644 --- a/src/test/java/org/onap/music/unittests/jsonobjects/JsonKeySpaceTest.java +++ b/src/test/java/org/onap/music/unittests/jsonobjects/JsonKeySpaceTest.java @@ -19,6 +19,7 @@ * ============LICENSE_END============================================= * ==================================================================== */ + package org.onap.music.unittests.jsonobjects; import static org.junit.Assert.*; diff --git a/src/test/java/org/onap/music/unittests/jsonobjects/JsonLeasedLockTest.java b/src/test/java/org/onap/music/unittests/jsonobjects/JsonLeasedLockTest.java index 63f901c6..0014093d 100644 --- a/src/test/java/org/onap/music/unittests/jsonobjects/JsonLeasedLockTest.java +++ b/src/test/java/org/onap/music/unittests/jsonobjects/JsonLeasedLockTest.java @@ -19,6 +19,7 @@ * ============LICENSE_END============================================= * ==================================================================== */ + package org.onap.music.unittests.jsonobjects; import static org.junit.Assert.*; diff --git a/src/test/java/org/onap/music/unittests/jsonobjects/JsonNotificationTest.java b/src/test/java/org/onap/music/unittests/jsonobjects/JsonNotificationTest.java deleted file mode 100644 index e5b13ca8..00000000 --- a/src/test/java/org/onap/music/unittests/jsonobjects/JsonNotificationTest.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * ============LICENSE_START========================================== - * org.onap.music - * =================================================================== - * Copyright (c) 2019 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. - * - * ============LICENSE_END============================================= - * ==================================================================== - */ - -package org.onap.music.unittests.jsonobjects; - -import static org.junit.Assert.assertEquals; - -import java.util.HashMap; -import java.util.Map; - -import org.junit.Before; -import org.junit.Test; -import org.onap.music.datastore.jsonobjects.JsonNotification; - -public class JsonNotificationTest { - - private JsonNotification jsonNotification; - - @Before - public void setUp() - { - jsonNotification= new JsonNotification(); - } - - @Test - public void testGetSetNotify_field() - { - jsonNotification.setNotify_field("notify_field"); - assertEquals("notify_field", jsonNotification.getNotify_field()); - } - - @Test - public void testGetSetEndpoint() - { - jsonNotification.setEndpoint("endpoint"); - assertEquals("endpoint", jsonNotification.getEndpoint()); - } - - @Test - public void testGetSetUsername() - { - jsonNotification.setUsername("Username"); - assertEquals("Username", jsonNotification.getUsername()); - } - - @Test - public void testGetSetPassword() - { - jsonNotification.setPassword("Password"); - assertEquals("Password", jsonNotification.getPassword()); - } - - @Test - public void testGetSetResponse_body() - { - Map<String, String> ResponseBody= new HashMap<>(); - jsonNotification.setResponse_body(ResponseBody); - assertEquals(ResponseBody, jsonNotification.getResponse_body()); - } - - @Test - public void testGetSetNotify_change() - { - jsonNotification.setNotify_change("Notify_change"); - assertEquals("Notify_change", jsonNotification.getNotify_change()); - } - - @Test - public void testGetSetNotify_insert() - { - jsonNotification.setNotify_insert("Notify_insert"); - assertEquals("Notify_insert", jsonNotification.getNotify_insert()); - } - - @Test - public void testGetSetNotify_delete() - { - jsonNotification.setNotify_delete("Notify_delete"); - assertEquals("Notify_delete", jsonNotification.getNotify_delete()); - } - - @Test - public void testGetSetOperation_type() - { - jsonNotification.setOperation_type("Operation_type"); - assertEquals("Operation_type", jsonNotification.getOperation_type()); - } - - @Test - public void testGetSetTriggerName() - { - jsonNotification.setTriggerName("TriggerName"); - assertEquals("TriggerName", jsonNotification.getTriggerName()); - } - - -} diff --git a/src/test/java/org/onap/music/unittests/jsonobjects/JsonNotifyClientResponseTest.java b/src/test/java/org/onap/music/unittests/jsonobjects/JsonNotifyClientResponseTest.java deleted file mode 100644 index 07f4dbb4..00000000 --- a/src/test/java/org/onap/music/unittests/jsonobjects/JsonNotifyClientResponseTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * ============LICENSE_START========================================== - * org.onap.music - * =================================================================== - * Copyright (c) 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. - * - * ============LICENSE_END============================================= - * ==================================================================== - */ - -package org.onap.music.unittests.jsonobjects; - -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - -import org.onap.music.datastore.jsonobjects.JsonNotifyClientResponse; - -public class JsonNotifyClientResponseTest { - private JsonNotifyClientResponse response; - - @Before - public void setUp() { - response = new JsonNotifyClientResponse(); - } - - @Test - public void testGetSetMethods() { - response.setMessage("message"); - response.setStatus("success"); - Assert.assertEquals("message", response.getMessage()); - Assert.assertEquals("success", response.getStatus()); - } -} diff --git a/src/test/java/org/onap/music/unittests/jsonobjects/JsonOnboardTest.java b/src/test/java/org/onap/music/unittests/jsonobjects/JsonOnboardTest.java index 82f1748a..1e66ed58 100644 --- a/src/test/java/org/onap/music/unittests/jsonobjects/JsonOnboardTest.java +++ b/src/test/java/org/onap/music/unittests/jsonobjects/JsonOnboardTest.java @@ -19,6 +19,7 @@ * ============LICENSE_END============================================= * ==================================================================== */ + package org.onap.music.unittests.jsonobjects; import static org.junit.Assert.*; diff --git a/src/test/java/org/onap/music/unittests/jsonobjects/JsonSelectTest.java b/src/test/java/org/onap/music/unittests/jsonobjects/JsonSelectTest.java index f776e546..37d1787a 100644 --- a/src/test/java/org/onap/music/unittests/jsonobjects/JsonSelectTest.java +++ b/src/test/java/org/onap/music/unittests/jsonobjects/JsonSelectTest.java @@ -21,6 +21,7 @@ * ============LICENSE_END============================================= * ==================================================================== */ + package org.onap.music.unittests.jsonobjects; import static org.junit.Assert.assertEquals; diff --git a/src/test/java/org/onap/music/unittests/jsonobjects/JsonUpdateTest.java b/src/test/java/org/onap/music/unittests/jsonobjects/JsonUpdateTest.java index 2186e496..e00cb463 100644 --- a/src/test/java/org/onap/music/unittests/jsonobjects/JsonUpdateTest.java +++ b/src/test/java/org/onap/music/unittests/jsonobjects/JsonUpdateTest.java @@ -21,6 +21,7 @@ * ============LICENSE_END============================================= * ==================================================================== *******************************************************************************/ + package org.onap.music.unittests.jsonobjects; import static org.junit.Assert.*; |