summaryrefslogtreecommitdiffstats
path: root/src/test/java/com/wipro/www/sonhms/restclient
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/wipro/www/sonhms/restclient')
-rw-r--r--src/test/java/com/wipro/www/sonhms/restclient/AsyncResponseBodyTest.java57
-rw-r--r--src/test/java/com/wipro/www/sonhms/restclient/CellInfoTest.java45
-rw-r--r--src/test/java/com/wipro/www/sonhms/restclient/OofRequestBodyTest.java62
-rw-r--r--src/test/java/com/wipro/www/sonhms/restclient/OofRestClientTest.java25
-rw-r--r--src/test/java/com/wipro/www/sonhms/restclient/PciSolutionsTest.java40
-rw-r--r--src/test/java/com/wipro/www/sonhms/restclient/PolicyRequestBodyTest.java43
-rw-r--r--src/test/java/com/wipro/www/sonhms/restclient/RequestInfoTest.java57
-rw-r--r--src/test/java/com/wipro/www/sonhms/restclient/SolutionsTest.java55
8 files changed, 0 insertions, 384 deletions
diff --git a/src/test/java/com/wipro/www/sonhms/restclient/AsyncResponseBodyTest.java b/src/test/java/com/wipro/www/sonhms/restclient/AsyncResponseBodyTest.java
deleted file mode 100644
index 95afd77..0000000
--- a/src/test/java/com/wipro/www/sonhms/restclient/AsyncResponseBodyTest.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*******************************************************************************
- * ============LICENSE_START=======================================================
- * pcims
- * ================================================================================
- * Copyright (C) 2018 Wipro Limited.
- * ==============================================================================
- * 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 com.wipro.www.sonhms.restclient;
-
-import com.wipro.www.sonhms.restclient.AsyncResponseBody;
-import com.wipro.www.sonhms.restclient.Solution;
-import com.wipro.www.sonhms.restclient.SonSolution;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.junit.Test;
-
-
-
-public class AsyncResponseBodyTest {
-
- @Test
- public void asyncResponseBodyTest() {
- AsyncResponseBody asyncResponseBody = new AsyncResponseBody();
- asyncResponseBody.setRequestId("e44a4165-3cf4-4362-89de-e2375eed97e7");
- asyncResponseBody.setRequestStatus("completed");
- SonSolution pciSolutions = new SonSolution();
- pciSolutions.setCellId("EXP001");
- pciSolutions.setPci(101);
- List<SonSolution> pciSolutionsList = new ArrayList<SonSolution>();
- pciSolutionsList.add(pciSolutions);
- Solution solutions = new Solution();
- solutions.setFinishTime("2018-10-01T00:40+01.00");
- solutions.setNetworkId("EXP001");
- solutions.setPciSolutions(pciSolutionsList);
- solutions.setStartTime("2018-10-01T00:30+01:00");
- ArrayList<Solution> solutionsList = new ArrayList<Solution>();
- solutionsList.add(solutions);
- asyncResponseBody.setSolutions(solutionsList);
- asyncResponseBody.setStatusMessage("success");
- asyncResponseBody.setTransactionId("3df7b0e9-26d1-4080-ba42-28e8a3139689");
- }
-}
diff --git a/src/test/java/com/wipro/www/sonhms/restclient/CellInfoTest.java b/src/test/java/com/wipro/www/sonhms/restclient/CellInfoTest.java
deleted file mode 100644
index b686f93..0000000
--- a/src/test/java/com/wipro/www/sonhms/restclient/CellInfoTest.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*******************************************************************************
- * ============LICENSE_START=======================================================
- * pcims
- * ================================================================================
- * Copyright (C) 2018 Wipro Limited.
- * ==============================================================================
- * 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 com.wipro.www.sonhms.restclient;
-
-import static org.junit.Assert.assertEquals;
-
-import com.wipro.www.sonhms.restclient.CellInfo;
-
-import java.util.ArrayList;
-import java.util.List;
-import org.junit.Test;
-
-
-public class CellInfoTest {
- @Test
- public void cellInfoTest() {
- List<String> cellIdLists = new ArrayList<>();
- cellIdLists.add("cell1");
-
- CellInfo cellInfo = new CellInfo();
- cellInfo.setNetworkId("NTWK001");
- cellInfo.setCellIdList(cellIdLists);
- assertEquals("NTWK001", cellInfo.getNetworkId());
- assertEquals(cellIdLists, cellInfo.getCellIdList());
-
- }
-}
diff --git a/src/test/java/com/wipro/www/sonhms/restclient/OofRequestBodyTest.java b/src/test/java/com/wipro/www/sonhms/restclient/OofRequestBodyTest.java
deleted file mode 100644
index 493095b..0000000
--- a/src/test/java/com/wipro/www/sonhms/restclient/OofRequestBodyTest.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*******************************************************************************
- * ============LICENSE_START=======================================================
- * pcims
- * ================================================================================
- * Copyright (C) 2018 Wipro Limited.
- * ==============================================================================
- * 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 com.wipro.www.sonhms.restclient;
-
-import static org.junit.Assert.assertEquals;
-
-import com.wipro.www.sonhms.restclient.CellInfo;
-import com.wipro.www.sonhms.restclient.OofRequestBody;
-import com.wipro.www.sonhms.restclient.RequestInfo;
-
-import java.util.ArrayList;
-import java.util.List;
-import org.junit.Test;
-
-
-
-public class OofRequestBodyTest {
- @Test
- public void oofRequestBodyTest() {
-
- List<String> cellIdLists = new ArrayList<>();
- cellIdLists.add("cell1");
- CellInfo cellInfo = new CellInfo();
- cellInfo.setNetworkId("NTWK001");
- cellInfo.setCellIdList(cellIdLists);
- RequestInfo requestInfo = new RequestInfo();
- List<String> optimizers = new ArrayList<String>();
- optimizers.add("PCI");
- requestInfo.setCallbackUrl("");
- requestInfo.setNumSolutions(1);
- requestInfo.setOptimizers(optimizers);
- requestInfo.setRequestId("e44a4165-3cf4-4362-89de-e2375eed97e7");
- requestInfo.setRequestType("create");
- requestInfo.setSourceId("PCIHMS");
- requestInfo.setTimeout(60);
- requestInfo.setTransactionId("3df7b0e9-26d1-4080-ba42-28e8a3139689");
-
- OofRequestBody oofRequestBody = new OofRequestBody();
- oofRequestBody.setCellInfo(cellInfo);
- oofRequestBody.setRequestInfo(requestInfo);
- assertEquals(requestInfo, oofRequestBody.getRequestInfo());
- assertEquals(cellInfo, oofRequestBody.getCellInfo());
- }
-}
diff --git a/src/test/java/com/wipro/www/sonhms/restclient/OofRestClientTest.java b/src/test/java/com/wipro/www/sonhms/restclient/OofRestClientTest.java
deleted file mode 100644
index 2f06f0a..0000000
--- a/src/test/java/com/wipro/www/sonhms/restclient/OofRestClientTest.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*******************************************************************************
- * ============LICENSE_START=======================================================
- * pcims
- * ================================================================================
- * Copyright (C) 2018 Wipro Limited.
- * ==============================================================================
- * 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 com.wipro.www.sonhms.restclient;
-
-public class OofRestClientTest {
-
-}
diff --git a/src/test/java/com/wipro/www/sonhms/restclient/PciSolutionsTest.java b/src/test/java/com/wipro/www/sonhms/restclient/PciSolutionsTest.java
deleted file mode 100644
index e7aac21..0000000
--- a/src/test/java/com/wipro/www/sonhms/restclient/PciSolutionsTest.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*******************************************************************************
- * ============LICENSE_START=======================================================
- * pcims
- * ================================================================================
- * Copyright (C) 2018 Wipro Limited.
- * ==============================================================================
- * 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 com.wipro.www.sonhms.restclient;
-
-import static org.junit.Assert.assertEquals;
-
-import com.wipro.www.sonhms.restclient.SonSolution;
-
-import org.junit.Test;
-
-
-public class PciSolutionsTest {
- @Test
- public void pciSolutionsTest() {
- SonSolution pciSolutions = new SonSolution();
- pciSolutions.setCellId("EXP001");
- pciSolutions.setPci(101);
- assertEquals("EXP001", pciSolutions.getCellId());
- assertEquals(101, pciSolutions.getPci());
- }
-
-}
diff --git a/src/test/java/com/wipro/www/sonhms/restclient/PolicyRequestBodyTest.java b/src/test/java/com/wipro/www/sonhms/restclient/PolicyRequestBodyTest.java
deleted file mode 100644
index 0726c31..0000000
--- a/src/test/java/com/wipro/www/sonhms/restclient/PolicyRequestBodyTest.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*******************************************************************************
- * ============LICENSE_START=======================================================
- * pcims
- * ================================================================================
- * Copyright (C) 2018 Wipro Limited.
- * ==============================================================================
- * 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 com.wipro.www.sonhms.restclient;
-
-import static org.junit.Assert.assertEquals;
-
-import com.wipro.www.sonhms.restclient.PolicyRequestBody;
-
-import org.junit.Test;
-
-
-public class PolicyRequestBodyTest {
- @Test
- public void policyRequestBodyTest() {
- PolicyRequestBody policyRequestBody = new PolicyRequestBody();
- policyRequestBody.setConfigName("PCIMS_CONFIG_POLICY");
- policyRequestBody.setPolicyName("com.PCIMS_CONFIG_POLICY");
- policyRequestBody.setRequestId("60fe7fe6-2649-4f6c-8468-30eb03fd0527");
- assertEquals("PCIMS_CONFIG_POLICY", policyRequestBody.getConfigName());
- assertEquals("com.PCIMS_CONFIG_POLICY", policyRequestBody.getPolicyName());
- assertEquals("60fe7fe6-2649-4f6c-8468-30eb03fd0527", policyRequestBody.getRequestId());
-
- }
-
-}
diff --git a/src/test/java/com/wipro/www/sonhms/restclient/RequestInfoTest.java b/src/test/java/com/wipro/www/sonhms/restclient/RequestInfoTest.java
deleted file mode 100644
index f21971b..0000000
--- a/src/test/java/com/wipro/www/sonhms/restclient/RequestInfoTest.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*******************************************************************************
- * ============LICENSE_START=======================================================
- * pcims
- * ================================================================================
- * Copyright (C) 2018 Wipro Limited.
- * ==============================================================================
- * 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 com.wipro.www.sonhms.restclient;
-
-import static org.junit.Assert.assertEquals;
-
-import com.wipro.www.sonhms.restclient.RequestInfo;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.junit.Test;
-
-
-public class RequestInfoTest {
- @Test
- public void requestInfoTest() {
- RequestInfo requestInfo = new RequestInfo();
- List<String> optimizers = new ArrayList<String>();
- optimizers.add("PCI");
- requestInfo.setCallbackUrl("");
- requestInfo.setNumSolutions(1);
- requestInfo.setOptimizers(optimizers);
- requestInfo.setRequestId("e44a4165-3cf4-4362-89de-e2375eed97e7");
- requestInfo.setRequestType("create");
- requestInfo.setSourceId("PCIHMS");
- requestInfo.setTimeout(60);
- requestInfo.setTransactionId("3df7b0e9-26d1-4080-ba42-28e8a3139689");
- assertEquals(1, requestInfo.getNumSolutions());
- assertEquals(optimizers, requestInfo.getOptimizers());
- assertEquals("create", requestInfo.getRequestType());
- assertEquals("PCIHMS", requestInfo.getSourceId());
- assertEquals("3df7b0e9-26d1-4080-ba42-28e8a3139689", requestInfo.getTransactionId());
- assertEquals("e44a4165-3cf4-4362-89de-e2375eed97e7", requestInfo.getRequestId());
- assertEquals(60, requestInfo.getTimeout());
- assertEquals("", requestInfo.getCallbackUrl());
- }
-
-}
diff --git a/src/test/java/com/wipro/www/sonhms/restclient/SolutionsTest.java b/src/test/java/com/wipro/www/sonhms/restclient/SolutionsTest.java
deleted file mode 100644
index 64985f6..0000000
--- a/src/test/java/com/wipro/www/sonhms/restclient/SolutionsTest.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*******************************************************************************
- * ============LICENSE_START=======================================================
- * pcims
- * ================================================================================
- * Copyright (C) 2018 Wipro Limited.
- * ==============================================================================
- * 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 com.wipro.www.sonhms.restclient;
-
-import static org.junit.Assert.assertEquals;
-
-import com.wipro.www.sonhms.restclient.Solution;
-import com.wipro.www.sonhms.restclient.SonSolution;
-import java.util.ArrayList;
-import java.util.List;
-import org.junit.Test;
-
-
-
-public class SolutionsTest {
-
- @Test
- public void solutionsTest() {
-
- SonSolution pciSolutions = new SonSolution();
- pciSolutions.setCellId("EXP001");
- pciSolutions.setPci(101);
- List<SonSolution> pciSolutionsList = new ArrayList<SonSolution>();
- pciSolutionsList.add(pciSolutions);
- Solution solutions = new Solution();
- solutions.setFinishTime("2018-10-01T00:40+01.00");
- solutions.setNetworkId("EXP001");
- solutions.setPciSolutions(pciSolutionsList);
- solutions.setStartTime("2018-10-01T00:30+01:00");
- assertEquals("2018-10-01T00:40+01.00", solutions.getFinishTime());
- assertEquals("EXP001", solutions.getNetworkId());
- assertEquals(pciSolutionsList, solutions.getPciSolutions());
- assertEquals("2018-10-01T00:30+01:00", solutions.getStartTime());
-
- }
-
-}