2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
22 package org.onap.so.adapters.sdnc.client;
24 import static org.junit.Assert.assertEquals;
25 import static org.junit.Assert.assertNotNull;
26 import org.junit.Test;
27 import org.onap.so.adapters.sdnc.client.CallbackHeader;
28 import org.onap.so.adapters.sdnc.client.SDNCAdapterCallbackRequest;
30 public class SDNCAdapterCallbackRequestTest {
32 static SDNCAdapterCallbackRequest sdc = new SDNCAdapterCallbackRequest();
33 static CallbackHeader ch = new CallbackHeader("413658f4-7f42-482e-b834-23a5c15657da-1474471336781", "200", "OK");
36 public void testSDNCAdapterCallbackRequest() {
37 sdc.setCallbackHeader(ch);
38 sdc.setRequestData("data");
39 assertNotNull(sdc.getCallbackHeader());
40 assertNotNull(sdc.getRequestData());
41 assertEquals(ch, sdc.getCallbackHeader());
42 assertEquals("data", sdc.getRequestData());
47 public void testtoString() {
48 assertNotNull(ch.toString());
49 assertNotNull(sdc.toString());