d7f4f8e6f73d90071e7bcf25bee2ec87e0f7d787
[so.git] / adapters / mso-sdnc-adapter / src / test / java / org / onap / so / adapters / sdnc / client / SDNCAdapterCallbackRequestTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21
22 package org.onap.so.adapters.sdnc.client;
23
24 import static org.junit.Assert.assertEquals;
25 import static org.junit.Assert.assertNotNull;
26
27 import org.junit.Test;
28 import org.onap.so.adapters.sdnc.client.CallbackHeader;
29 import org.onap.so.adapters.sdnc.client.SDNCAdapterCallbackRequest;
30
31 public class SDNCAdapterCallbackRequestTest {
32
33   static SDNCAdapterCallbackRequest sdc = new SDNCAdapterCallbackRequest();
34    static CallbackHeader ch = new CallbackHeader("413658f4-7f42-482e-b834-23a5c15657da-1474471336781","200","OK");
35    
36    @Test
37    public void testSDNCAdapterCallbackRequest()
38    {
39        sdc.setCallbackHeader(ch);
40        sdc.setRequestData("data");
41        assertNotNull(sdc.getCallbackHeader());
42        assertNotNull(sdc.getRequestData());
43        assertEquals(ch, sdc.getCallbackHeader());
44        assertEquals("data", sdc.getRequestData());
45
46    }
47    
48    @Test
49    public void testtoString()
50    {
51        assertNotNull(ch.toString());
52        assertNotNull(sdc.toString());
53    }
54    
55 }
56
57