Replaced all tabs with spaces in java and pom.xml
[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 import org.junit.Test;
27 import org.onap.so.adapters.sdnc.client.CallbackHeader;
28 import org.onap.so.adapters.sdnc.client.SDNCAdapterCallbackRequest;
29
30 public class SDNCAdapterCallbackRequestTest {
31
32     static SDNCAdapterCallbackRequest sdc = new SDNCAdapterCallbackRequest();
33     static CallbackHeader ch = new CallbackHeader("413658f4-7f42-482e-b834-23a5c15657da-1474471336781", "200", "OK");
34
35     @Test
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());
43
44     }
45
46     @Test
47     public void testtoString() {
48         assertNotNull(ch.toString());
49         assertNotNull(sdc.toString());
50     }
51
52 }
53
54