aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/onap/vid/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'vid-app-common/src/test/java/org/onap/vid/controllers')
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/controllers/AaiControllerTest.java464
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/controllers/MsoControllerNewTest.java390
2 files changed, 816 insertions, 38 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/controllers/AaiControllerTest.java b/vid-app-common/src/test/java/org/onap/vid/controllers/AaiControllerTest.java
index bb055266b..2a398b361 100644
--- a/vid-app-common/src/test/java/org/onap/vid/controllers/AaiControllerTest.java
+++ b/vid-app-common/src/test/java/org/onap/vid/controllers/AaiControllerTest.java
@@ -4,49 +4,437 @@ import javax.servlet.http.HttpServletRequest;
import org.json.simple.JSONObject;
import org.junit.Test;
+import org.onap.vid.aai.AaiResponse;
+import org.onap.vid.aai.model.AaiGetOperationalEnvironments.OperationalEnvironmentList;
import org.onap.vid.controllers.AaiController;
+import org.onap.vid.model.VersionByInvariantIdsRequest;
import org.springframework.http.ResponseEntity;
import org.springframework.web.servlet.ModelAndView;
+import java.util.*;
+import org.junit.Assert;
public class AaiControllerTest {
- private AaiController createTestSubject() {
- return new AaiController();
- }
-
- @Test
- public void testWelcome() throws Exception {
- AaiController testSubject;
- HttpServletRequest request = null;
- ModelAndView result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.welcome(request);
- }
-
-
- @Test
- public void testGetTargetProvStatus() throws Exception {
- AaiController testSubject;
- ResponseEntity<String> result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getTargetProvStatus();
- }
-
- @Test
- public void testViewEditGetTenantsFromServiceType() throws Exception {
- AaiController testSubject;
- HttpServletRequest request = null;
- String globalCustomerId = "";
- String serviceType = "";
- ResponseEntity<String> result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.viewEditGetTenantsFromServiceType(request, globalCustomerId, serviceType);
- }
+ private AaiController createTestSubject() {
+ return new AaiController();
+ }
+
+ @Test
+ public void testWelcome() throws Exception {
+ AaiController testSubject;
+ HttpServletRequest request = null;
+ ModelAndView result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.welcome(request);
+ }
+
+ @Test
+ public void testGetTargetProvStatus() throws Exception {
+ AaiController testSubject;
+ ResponseEntity<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTargetProvStatus();
+ }
+
+ @Test
+ public void testViewEditGetTenantsFromServiceType() throws Exception {
+ AaiController testSubject;
+ HttpServletRequest request = null;
+ String globalCustomerId = "";
+ String serviceType = "";
+ ResponseEntity<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.viewEditGetTenantsFromServiceType(request, globalCustomerId, serviceType);
+ }
+
+
+
+
+
+ @Test
+ public void testGetAicZones() throws Exception {
+ AaiController testSubject;
+ HttpServletRequest request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.getAicZones(request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testGetAicZoneForPnf() throws Exception {
+ AaiController testSubject;
+ String globalCustomerId = "";
+ String serviceType = "";
+ String serviceId = "";
+ HttpServletRequest request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.getAicZoneForPnf(globalCustomerId, serviceType, serviceId, request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testGetUserID() throws Exception {
+ AaiController testSubject;
+ HttpServletRequest request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.getUserID(request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testDoGetServices() throws Exception {
+ AaiController testSubject;
+ HttpServletRequest request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.doGetServices(request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testGetVersionByInvariantId() throws Exception {
+ AaiController testSubject;
+ HttpServletRequest request = null;
+ VersionByInvariantIdsRequest versions = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.getVersionByInvariantId(request, versions);
+ } catch (Exception e) {
+ }
+ }
+
+ // @Test
+ // public void testAaiResponseToResponseEntity() throws Exception {
+ // AaiController testSubject;AaiResponse aaiResponseData = null;
+ // ResponseEntity<String> result;
+ //
+ // // default test
+ // }
+
+ @Test
+ public void testDoGetServiceInstance() throws Exception {
+ AaiController testSubject;
+ String serviceInstanceId = "";
+ String serviceInstanceType = "";
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.doGetServiceInstance(serviceInstanceId, serviceInstanceType);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testDoGetServices_1() throws Exception {
+ AaiController testSubject;
+ String globalCustomerId = "";
+ String serviceSubscriptionId = "";
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.doGetServices(globalCustomerId, serviceSubscriptionId);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testDoGetSubscriberList() throws Exception {
+ AaiController testSubject;
+ HttpServletRequest request = null;
+ String fullSet = "";
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.doGetSubscriberList(request, fullSet);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testGetOperationalEnvironments() throws Exception {
+ AaiController testSubject;
+ String operationalEnvironmentType = "";
+ String operationalEnvironmentStatus = "";
+ AaiResponse<OperationalEnvironmentList> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.getOperationalEnvironments(operationalEnvironmentType, operationalEnvironmentStatus);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testGetFullSubscriberList() throws Exception {
+ AaiController testSubject;
+ HttpServletRequest request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.getFullSubscriberList(request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testGetVnfDataByGlobalIdAndServiceType() throws Exception {
+ AaiController testSubject;
+ HttpServletRequest request = null;
+ String globalCustomerId = "";
+ String serviceType = "";
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.getVnfDataByGlobalIdAndServiceType(request, globalCustomerId, serviceType);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testDoRefreshSubscriberList() throws Exception {
+ AaiController testSubject;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.doRefreshSubscriberList();
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testDoRefreshFullSubscriberList() throws Exception {
+ AaiController testSubject;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.doRefreshFullSubscriberList();
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testGetSubscriberDetails() throws Exception {
+ AaiController testSubject;
+ HttpServletRequest request = null;
+ String subscriberId = "";
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.GetSubscriberDetails(request, subscriberId);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testSearchServiceInstances() throws Exception {
+ AaiController testSubject;
+ HttpServletRequest request = null;
+ String subscriberId = "";
+ String instanceIdentifier = "";
+ List<String> projects = null;
+ List<String> owningEntities = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.SearchServiceInstances(request, subscriberId, instanceIdentifier, projects,
+ owningEntities);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testViewEditGetComponentList() throws Exception {
+ AaiController testSubject;
+ String namedQueryId = "";
+ String globalCustomerId = "";
+ String serviceType = "";
+ String serviceInstance = "";
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.viewEditGetComponentList(namedQueryId, globalCustomerId, serviceType, serviceInstance);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testGetVnfData() throws Exception {
+ AaiController testSubject;
+ String globalCustomerId = "";
+ String serviceType = "";
+ String serviceInstanceId = "";
+ AaiResponse<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.getVnfData(globalCustomerId, serviceType, serviceInstanceId);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testViewEditGetComponentList_1() throws Exception {
+ AaiController testSubject;
+ String namedQueryId = "";
+ String globalCustomerId = "";
+ String serviceType = "";
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.viewEditGetComponentList(namedQueryId, globalCustomerId, serviceType);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testGetNodeTemplateInstances() throws Exception {
+ AaiController testSubject;
+ String globalCustomerId = "";
+ String serviceType = "";
+ String modelVersionId = "";
+ String modelInvariantId = "";
+ String cloudRegion = "";
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.getNodeTemplateInstances(globalCustomerId, serviceType, modelVersionId,
+ modelInvariantId, cloudRegion);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testGetByUri() throws Exception {
+ AaiController testSubject;
+ HttpServletRequest request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.getByUri(request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testGetSpecificConfiguration() throws Exception {
+ AaiController testSubject;
+ String configurationId = "";
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.getSpecificConfiguration(configurationId);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testGetServiceInstanceAssociatedPnfs() throws Exception {
+ AaiController testSubject;
+ String globalCustomerId = "";
+ String serviceType = "";
+ String serviceInstanceId = "";
+ List<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.getServiceInstanceAssociatedPnfs(globalCustomerId, serviceType, serviceInstanceId);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testGetSpecificPnf() throws Exception {
+ AaiController testSubject;
+ String pnfId = "";
+ ResponseEntity result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.getSpecificPnf(pnfId);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testGetPnfInstances() throws Exception {
+ AaiController testSubject;
+ String globalCustomerId = "";
+ String serviceType = "";
+ String modelVersionId = "";
+ String modelInvariantId = "";
+ String cloudRegion = "";
+ String equipVendor = "";
+ String equipModel = "";
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.getPnfInstances(globalCustomerId, serviceType, modelVersionId, modelInvariantId,
+ cloudRegion, equipVendor, equipModel);
+ } catch (Exception e) {
+ }
+
+ }
} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/onap/vid/controllers/MsoControllerNewTest.java b/vid-app-common/src/test/java/org/onap/vid/controllers/MsoControllerNewTest.java
new file mode 100644
index 000000000..c138740ef
--- /dev/null
+++ b/vid-app-common/src/test/java/org/onap/vid/controllers/MsoControllerNewTest.java
@@ -0,0 +1,390 @@
+package org.onap.vid.controllers;
+
+import static org.junit.Assert.*;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.junit.Test;
+import org.onap.vid.mso.MsoBusinessLogicImpl;
+import org.onap.vid.mso.rest.RequestDetails;
+import org.springframework.http.ResponseEntity;
+
+public class MsoControllerNewTest {
+
+ private MsoController createTestSubject() {
+ try {
+ return new MsoController(new MsoBusinessLogicImpl(null));
+ } catch (Exception e) {
+ return null;
+ }
+ }
+
+ @Test
+ public void testCreateSvcInstance() throws Exception {
+ MsoController testSubject;
+ HttpServletRequest request = null;
+ RequestDetails mso_request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.createSvcInstance(request, mso_request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testCreateVnf() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ HttpServletRequest request = null;
+ RequestDetails mso_request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.createVnf(serviceInstanceId, request, mso_request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testCreateNwInstance() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ HttpServletRequest request = null;
+ RequestDetails mso_request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.createNwInstance(serviceInstanceId, request, mso_request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testCreateVolumeGroupInstance() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ String vnfInstanceId = "";
+ HttpServletRequest request = null;
+ RequestDetails mso_request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.createVolumeGroupInstance(serviceInstanceId, vnfInstanceId, request, mso_request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testCreateVfModuleInstance() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ String vnfInstanceId = "";
+ HttpServletRequest request = null;
+ RequestDetails mso_request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.createVfModuleInstance(serviceInstanceId, vnfInstanceId, request, mso_request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testCreateConfigurationInstance() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ HttpServletRequest request = null;
+ RequestDetails mso_request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.createConfigurationInstance(serviceInstanceId, request, mso_request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testDeleteSvcInstance() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ HttpServletRequest request = null;
+ RequestDetails mso_request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.deleteSvcInstance(serviceInstanceId, request, mso_request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testDeleteVnf() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ String vnfInstanceId = "";
+ HttpServletRequest request = null;
+ RequestDetails mso_request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.deleteVnf(serviceInstanceId, vnfInstanceId, request, mso_request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testDeleteConfiguration() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ String configurationId = "";
+ RequestDetails mso_request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.deleteConfiguration(serviceInstanceId, configurationId, mso_request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testActivateConfiguration() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ String configurationId = "";
+ RequestDetails mso_request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.activateConfiguration(serviceInstanceId, configurationId, mso_request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testDeactivateConfiguration() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ String configurationId = "";
+ RequestDetails mso_request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.deactivateConfiguration(serviceInstanceId, configurationId, mso_request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testDisablePortOnConfiguration() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ String configurationId = "";
+ RequestDetails mso_request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.disablePortOnConfiguration(serviceInstanceId, configurationId, mso_request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testEnablePortOnConfiguration() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ String configurationId = "";
+ RequestDetails mso_request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.enablePortOnConfiguration(serviceInstanceId, configurationId, mso_request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testDeleteVfModule() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ String vnfInstanceId = "";
+ String vfModuleId = "";
+ HttpServletRequest request = null;
+ RequestDetails mso_request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.deleteVfModule(serviceInstanceId, vnfInstanceId, vfModuleId, request, mso_request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testDeleteVolumeGroupInstance() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ String vnfInstanceId = "";
+ String volumeGroupId = "";
+ HttpServletRequest request = null;
+ RequestDetails mso_request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.deleteVolumeGroupInstance(serviceInstanceId, vnfInstanceId, volumeGroupId, request,
+ mso_request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testDeleteNwInstance() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ String networkInstanceId = "";
+ HttpServletRequest request = null;
+ RequestDetails mso_request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.deleteNwInstance(serviceInstanceId, networkInstanceId, request, mso_request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testGetOrchestrationRequest() throws Exception {
+ MsoController testSubject;
+ String requestId = "";
+ HttpServletRequest request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.getOrchestrationRequest(requestId, request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testGetOrchestrationRequests() throws Exception {
+ MsoController testSubject;
+ String filterString = "";
+ HttpServletRequest request = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.getOrchestrationRequests(filterString, request);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testActivateServiceInstance() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ RequestDetails requestDetails = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.activateServiceInstance(serviceInstanceId, requestDetails);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testDeactivateServiceInstance() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ RequestDetails requestDetails = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.deactivateServiceInstance(serviceInstanceId, requestDetails);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testManualTaskComplete() throws Exception {
+ MsoController testSubject;
+ String taskId = "";
+ RequestDetails requestDetails = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.manualTaskComplete(taskId, requestDetails);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testRemoveRelationshipFromServiceInstance() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ RequestDetails requestDetails = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.removeRelationshipFromServiceInstance(serviceInstanceId, requestDetails);
+ } catch (Exception e) {
+ }
+ }
+
+ @Test
+ public void testAddRelationshipToServiceInstance() throws Exception {
+ MsoController testSubject;
+ String serviceInstanceId = "";
+ RequestDetails requestDetails = null;
+ ResponseEntity<String> result;
+
+ // default test
+ try {
+ testSubject = createTestSubject();
+ result = testSubject.addRelationshipToServiceInstance(serviceInstanceId, requestDetails);
+ } catch (Exception e) {
+ }
+ }
+}