aboutsummaryrefslogtreecommitdiffstats
path: root/adapters/mso-sdnc-adapter/src/test
diff options
context:
space:
mode:
authorAS00465059 <AS00465059@techmahindra.com>2018-02-26 16:18:51 +0530
committerAS00465059 <AS00465059@techmahindra.com>2018-02-26 16:18:51 +0530
commit52e372de80b194afb37f89e35d0682a164dafee5 (patch)
tree34f9d92f0ff4ab27a3e2aadee2a1d043e7925930 /adapters/mso-sdnc-adapter/src/test
parent250de788c5cf40cc8a73c7aad4dc2f482f821768 (diff)
Adding Junit
Junit for CallbackHeader.java Sonar link: https://sonar.onap.org/code?id=org.openecomp.so%3Aso&selected=org.openecomp.so.adapters%3Amso-sdnc-adapter%3Asrc%2Fmain%2Fjava%2Forg%2Fopenecomp%2Fmso%2Fadapters%2Fsdnc%2Fclient%2FCallbackHeader.java Change-Id: Ic539c486d703f8376257b8bbc2166a3054c8007e Issue-ID: SO-446 Signed-off-by: AS00465059 <AS00465059@techmahindra.com>
Diffstat (limited to 'adapters/mso-sdnc-adapter/src/test')
-rw-r--r--adapters/mso-sdnc-adapter/src/test/java/org/openecomp/mso/adapters/sdnc/client/CallbackHeaderTest.java47
1 files changed, 47 insertions, 0 deletions
diff --git a/adapters/mso-sdnc-adapter/src/test/java/org/openecomp/mso/adapters/sdnc/client/CallbackHeaderTest.java b/adapters/mso-sdnc-adapter/src/test/java/org/openecomp/mso/adapters/sdnc/client/CallbackHeaderTest.java
new file mode 100644
index 0000000000..88d2b950b9
--- /dev/null
+++ b/adapters/mso-sdnc-adapter/src/test/java/org/openecomp/mso/adapters/sdnc/client/CallbackHeaderTest.java
@@ -0,0 +1,47 @@
+/*
+* ============LICENSE_START=======================================================
+* ONAP : SO
+* ================================================================================
+* Copyright 2018 TechMahindra
+*=================================================================================
+* 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.openecomp.mso.adapters.sdnc.client;
+
+import org.junit.Test;
+import org.openecomp.mso.adapters.sdnc.client.CallbackHeader;
+
+public class CallbackHeaderTest {
+
+ static CallbackHeader cb = new CallbackHeader();
+
+ @Test
+ public final void testCallbackHeader() {
+ cb.setRequestId("413658f4-7f42-482e-b834-23a5c15657da-1474471336781");
+ cb.setResponseCode("200");
+ cb.setResponseMessage("OK");
+ assert (cb.getRequestId() != null);
+ assert (cb.getResponseCode() != null);
+ assert (cb.getResponseMessage() != null);
+ assert (cb.getRequestId().equals("413658f4-7f42-482e-b834-23a5c15657da-1474471336781"));
+ assert (cb.getResponseCode().equals("200"));
+ assert (cb.getResponseMessage().equals("OK"));
+ }
+
+ @Test
+ public void testtoString() {
+ assert (cb.toString() != null);
+ }
+}