diff options
author | 2018-03-19 17:39:39 +0200 | |
---|---|---|
committer | 2018-03-19 17:39:39 +0200 | |
commit | 728e24f8d47287eeb4994780706adbe7ec99d941 (patch) | |
tree | 719a2193df6f53ae879385f2e9206c1996bf80c1 /vid-app-common/src/test/java/org/onap/vid/mso | |
parent | a94ec86f242d57fc0832f2658114ae8c9d1c6b1c (diff) |
Unit tests
Change-Id: I0834a2b68d61664a82492c8465fa82aee6c0f017
Issue-ID: VID-197
Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/onap/vid/mso')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/mso/rest/MsoRestClientNewTest.java | 400 |
1 files changed, 400 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/mso/rest/MsoRestClientNewTest.java b/vid-app-common/src/test/java/org/onap/vid/mso/rest/MsoRestClientNewTest.java new file mode 100644 index 00000000..01d1e9b5 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/mso/rest/MsoRestClientNewTest.java @@ -0,0 +1,400 @@ +package org.onap.vid.mso.rest; + +import org.junit.Test; +import org.onap.vid.changeManagement.RequestDetailsWrapper; +import org.onap.vid.mso.MsoResponseWrapper; +import org.onap.vid.mso.MsoResponseWrapperInterface; +import org.onap.vid.mso.RestObject; + +public class MsoRestClientNewTest { + + private MsoRestClientNew createTestSubject() { + return new MsoRestClientNew(); + } + + @Test + public void testCreateSvcInstance() throws Exception { + MsoRestClientNew testSubject; + RequestDetails requestDetails = null; + String endpoint = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.createSvcInstance(requestDetails, endpoint); + } catch (Exception e) { + } + } + + @Test + public void testCreateVnf() throws Exception { + MsoRestClientNew testSubject; + RequestDetails requestDetails = null; + String endpoint = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.createVnf(requestDetails, endpoint); + } catch (Exception e) { + } + } + + @Test + public void testCreateNwInstance() throws Exception { + MsoRestClientNew testSubject; + RequestDetails requestDetails = null; + String endpoint = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.createNwInstance(requestDetails, endpoint); + } catch (Exception e) { + } + } + + @Test + public void testCreateVolumeGroupInstance() throws Exception { + MsoRestClientNew testSubject; + RequestDetails requestDetails = null; + String endpoint = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.createVolumeGroupInstance(requestDetails, endpoint); + } catch (Exception e) { + } + } + + @Test + public void testCreateVfModuleInstance() throws Exception { + MsoRestClientNew testSubject; + RequestDetails requestDetails = null; + String endpoint = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.createVfModuleInstance(requestDetails, endpoint); + } catch (Exception e) { + } + } + + @Test + public void testCreateConfigurationInstance() throws Exception { + MsoRestClientNew testSubject; + RequestDetails requestDetails = null; + String endpoint = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.createConfigurationInstance(requestDetails, endpoint); + } catch (Exception e) { + } + } + + @Test + public void testDeleteSvcInstance() throws Exception { + MsoRestClientNew testSubject; + RequestDetails requestDetails = null; + String endpoint = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.deleteSvcInstance(requestDetails, endpoint); + } catch (Exception e) { + } + } + + @Test + public void testDeleteVnf() throws Exception { + MsoRestClientNew testSubject; + RequestDetails requestDetails = null; + String endpoint = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.deleteVnf(requestDetails, endpoint); + } catch (Exception e) { + } + } + + @Test + public void testDeleteVfModule() throws Exception { + MsoRestClientNew testSubject; + RequestDetails requestDetails = null; + String endpoint = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.deleteVfModule(requestDetails, endpoint); + } catch (Exception e) { + } + } + + @Test + public void testDeleteVolumeGroupInstance() throws Exception { + MsoRestClientNew testSubject; + RequestDetails requestDetails = null; + String endpoint = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.deleteVolumeGroupInstance(requestDetails, endpoint); + } catch (Exception e) { + } + } + + @Test + public void testDeleteNwInstance() throws Exception { + MsoRestClientNew testSubject; + RequestDetails requestDetails = null; + String endpoint = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.deleteNwInstance(requestDetails, endpoint); + } catch (Exception e) { + } + } + + @Test + public void testGetOrchestrationRequest() throws Exception { + MsoRestClientNew testSubject; + String t = ""; + String sourceId = ""; + String endpoint = ""; + RestObject restObject = null; + + // default test + try { + testSubject = createTestSubject(); + testSubject.getOrchestrationRequest(t, sourceId, endpoint, restObject); + } catch (Exception e) { + } + } + + @Test + public void testGetManualTasks() throws Exception { + MsoRestClientNew testSubject; + String t = ""; + String sourceId = ""; + String endpoint = ""; + RestObject restObject = null; + + // default test + try { + testSubject = createTestSubject(); + testSubject.getManualTasks(t, sourceId, endpoint, restObject); + } catch (Exception e) { + } + } + + @Test + public void testCreateInstance() throws Exception { + MsoRestClientNew testSubject; + RequestDetails request = null; + String path = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.createInstance(request, path); + } catch (Exception e) { + } + } + + @Test + public void testDeleteInstance() throws Exception { + MsoRestClientNew testSubject; + RequestDetails request = null; + String path = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.deleteInstance(request, path); + } catch (Exception e) { + } + } + + @Test + public void testGetOrchestrationRequestsForDashboard() throws Exception { + MsoRestClientNew testSubject; + String t = ""; + String sourceId = ""; + String endpoint = ""; + RestObject restObject = null; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.getOrchestrationRequestsForDashboard(t, sourceId, endpoint, restObject); + } catch (Exception e) { + } + } + + @Test + public void testGetManualTasksByRequestId() throws Exception { + MsoRestClientNew testSubject; + String t = ""; + String sourceId = ""; + String endpoint = ""; + RestObject restObject = null; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.getManualTasksByRequestId(t, sourceId, endpoint, restObject); + } catch (Exception e) { + } + } + + @Test + public void testCompleteManualTask() throws Exception { + MsoRestClientNew testSubject; + RequestDetails requestDetails = null; + String t = ""; + String sourceId = ""; + String endpoint = ""; + RestObject restObject = null; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.completeManualTask(requestDetails, t, sourceId, endpoint, restObject); + } catch (Exception e) { + } + } + + @Test + public void testDeleteConfiguration() throws Exception { + MsoRestClientNew testSubject; + RequestDetails requestDetails = null; + String pmc_endpoint = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.deleteConfiguration(requestDetails, pmc_endpoint); + } catch (Exception e) { + } + } + + @Test + public void testSetConfigurationActiveStatus() throws Exception { + MsoRestClientNew testSubject; + RequestDetails request = null; + String path = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.setConfigurationActiveStatus(request, path); + } catch (Exception e) { + } + } + + @Test + public void testSetPortOnConfigurationStatus() throws Exception { + MsoRestClientNew testSubject; + RequestDetails request = null; + String path = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.setPortOnConfigurationStatus(request, path); + } catch (Exception e) { + } + } + + @Test + public void testChangeManagementUpdate() throws Exception { + MsoRestClientNew testSubject; + RequestDetailsWrapper requestDetails = null; + String endpoint = ""; + MsoResponseWrapperInterface result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.changeManagementUpdate(requestDetails, endpoint); + } catch (Exception e) { + } + } + + @Test + public void testSetServiceInstanceStatus() throws Exception { + MsoRestClientNew testSubject; + RequestDetails requestDetails = null; + String t = ""; + String sourceId = ""; + String endpoint = ""; + RestObject<String> restObject = null; + + // default test + try { + testSubject = createTestSubject(); + testSubject.setServiceInstanceStatus(requestDetails, t, sourceId, endpoint, restObject); + } catch (Exception e) { + } + } + + @Test + public void testRemoveRelationshipFromServiceInstance() throws Exception { + MsoRestClientNew testSubject; + RequestDetails requestDetails = null; + String endpoint = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.removeRelationshipFromServiceInstance(requestDetails, endpoint); + } catch (Exception e) { + } + } + + @Test + public void testAddRelationshipToServiceInstance() throws Exception { + MsoRestClientNew testSubject; + RequestDetails requestDetails = null; + String addRelationshipsPath = ""; + MsoResponseWrapper result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.addRelationshipToServiceInstance(requestDetails, addRelationshipsPath); + } catch (Exception e) { + } + } +}
\ No newline at end of file |