Son-handler microservice seed code
[dcaegen2/services/son-handler.git] / src / test / java / com / wipro / www / sonhms / restclient / AsyncResponseBodyTest.java
1 /*******************************************************************************
2  * ============LICENSE_START=======================================================
3  * pcims
4  *  ================================================================================
5  *  Copyright (C) 2018 Wipro Limited.
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 package com.wipro.www.sonhms.restclient;
22
23 import com.wipro.www.sonhms.restclient.AsyncResponseBody;
24 import com.wipro.www.sonhms.restclient.Solution;
25 import com.wipro.www.sonhms.restclient.SonSolution;
26
27 import java.util.ArrayList;
28 import java.util.List;
29
30 import org.junit.Test;
31
32
33
34 public class AsyncResponseBodyTest {
35
36     @Test
37     public void asyncResponseBodyTest() {
38         AsyncResponseBody asyncResponseBody = new AsyncResponseBody();
39         asyncResponseBody.setRequestId("e44a4165-3cf4-4362-89de-e2375eed97e7");
40         asyncResponseBody.setRequestStatus("completed");
41         SonSolution pciSolutions = new SonSolution();
42         pciSolutions.setCellId("EXP001");
43         pciSolutions.setPci(101);
44         List<SonSolution> pciSolutionsList = new ArrayList<SonSolution>();
45         pciSolutionsList.add(pciSolutions);
46         Solution solutions = new Solution();
47         solutions.setFinishTime("2018-10-01T00:40+01.00");
48         solutions.setNetworkId("EXP001");
49         solutions.setPciSolutions(pciSolutionsList);
50         solutions.setStartTime("2018-10-01T00:30+01:00");
51         ArrayList<Solution> solutionsList = new ArrayList<Solution>();
52         solutionsList.add(solutions);
53         asyncResponseBody.setSolutions(solutionsList);
54         asyncResponseBody.setStatusMessage("success");
55         asyncResponseBody.setTransactionId("3df7b0e9-26d1-4080-ba42-28e8a3139689");
56     }
57 }