aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/openecomp/vid/controller
diff options
context:
space:
mode:
Diffstat (limited to 'vid-app-common/src/test/java/org/openecomp/vid/controller')
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/controller/AaiControllerTest.java88
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/controller/HealthCheckControllerTest.java47
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/controller/PropertyControllerTest.java58
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/controller/TestSuite.java12
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/controller/ViewEditSubControllerTest.java45
5 files changed, 0 insertions, 250 deletions
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/controller/AaiControllerTest.java b/vid-app-common/src/test/java/org/openecomp/vid/controller/AaiControllerTest.java
deleted file mode 100644
index e342940f..00000000
--- a/vid-app-common/src/test/java/org/openecomp/vid/controller/AaiControllerTest.java
+++ /dev/null
@@ -1,88 +0,0 @@
-package org.openecomp.vid.controller;
-
-import javax.servlet.http.HttpServletRequest;
-
-import org.json.simple.JSONObject;
-import org.junit.Test;
-import org.springframework.http.ResponseEntity;
-import org.springframework.web.servlet.ModelAndView;
-
-public class AaiControllerTest {
-
- private AaiController createTestSubject() {
- return new AaiController();
- }
-
- @Test
- public void testParseCustomerObjectForTenants() throws Exception {
- JSONObject jsonObject = null;
- String result;
-
- // default test
- result = AaiController.parseCustomerObjectForTenants(jsonObject);
- }
-
- @Test
- public void testParseServiceSubscriptionObjectForTenants() throws Exception {
- JSONObject jsonObject = null;
- String result;
-
- // default test
- result = AaiController.parseServiceSubscriptionObjectForTenants(jsonObject);
- }
-
- @Test
- public void testWelcome() throws Exception {
- AaiController testSubject;
- HttpServletRequest request = null;
- ModelAndView result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.welcome(request);
- }
-
- @Test
- public void testGetViewName() throws Exception {
- AaiController testSubject;
- String result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getViewName();
- }
-
- @Test
- public void testSetViewName() throws Exception {
- AaiController testSubject;
- String viewName = "";
-
- // default test
- testSubject = createTestSubject();
- testSubject.setViewName(viewName);
- }
-
- @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);
- }
-
-} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/controller/HealthCheckControllerTest.java b/vid-app-common/src/test/java/org/openecomp/vid/controller/HealthCheckControllerTest.java
deleted file mode 100644
index 045ad9a6..00000000
--- a/vid-app-common/src/test/java/org/openecomp/vid/controller/HealthCheckControllerTest.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package org.openecomp.vid.controller;
-
-import org.junit.Test;
-import org.openecomp.vid.controller.HealthCheckController.HealthStatus;
-
-public class HealthCheckControllerTest {
-
- private HealthCheckController createTestSubject() {
- return new HealthCheckController();
- }
-
- @Test
- public void testGetProfileCount() throws Exception {
- HealthCheckController testSubject;
- String driver = "";
- String URL = "";
- String username = "";
- String password = "";
- int result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getProfileCount(driver, URL, username, password);
- }
-
- @Test
- public void testGethealthCheckStatusforIDNS() throws Exception {
- HealthCheckController testSubject;
- HealthStatus result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.gethealthCheckStatusforIDNS();
- }
-
- @Test
- public void testGetHealthCheck() throws Exception {
- HealthCheckController testSubject;
- String UserAgent = "";
- String ECOMPRequestID = "";
- HealthStatus result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getHealthCheck(UserAgent, ECOMPRequestID);
- }
-} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/controller/PropertyControllerTest.java b/vid-app-common/src/test/java/org/openecomp/vid/controller/PropertyControllerTest.java
deleted file mode 100644
index cf7ada46..00000000
--- a/vid-app-common/src/test/java/org/openecomp/vid/controller/PropertyControllerTest.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package org.openecomp.vid.controller;
-
-import javax.servlet.http.HttpServletRequest;
-
-import org.junit.Test;
-import org.springframework.http.ResponseEntity;
-import org.springframework.web.servlet.ModelAndView;
-
-public class PropertyControllerTest {
-
- private PropertyController createTestSubject() {
- return new PropertyController();
- }
-
- @Test
- public void testWelcome() throws Exception {
- PropertyController testSubject;
- HttpServletRequest request = null;
- ModelAndView result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.welcome(request);
- }
-
- @Test
- public void testGetViewName() throws Exception {
- PropertyController testSubject;
- String result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getViewName();
- }
-
- @Test
- public void testSetViewName() throws Exception {
- PropertyController testSubject;
- String _viewName = "";
-
- // default test
- testSubject = createTestSubject();
- testSubject.setViewName(_viewName);
- }
-
- @Test
- public void testGetProperty() throws Exception {
- PropertyController testSubject;
- String name = "";
- String defaultvalue = "";
- HttpServletRequest request = null;
- ResponseEntity<String> result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getProperty(name, defaultvalue, request);
- }
-} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/controller/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/controller/TestSuite.java
deleted file mode 100644
index c1b14642..00000000
--- a/vid-app-common/src/test/java/org/openecomp/vid/controller/TestSuite.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package org.openecomp.vid.controller;
-
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-@RunWith(Suite.class)
-@Suite.SuiteClasses(
-
-{ HealthCheckControllerTest.class, PropertyControllerTest.class, AaiControllerTest.class,
- ViewEditSubControllerTest.class })
-public class TestSuite { // nothing
-}
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/controller/ViewEditSubControllerTest.java b/vid-app-common/src/test/java/org/openecomp/vid/controller/ViewEditSubControllerTest.java
deleted file mode 100644
index 2b234ee8..00000000
--- a/vid-app-common/src/test/java/org/openecomp/vid/controller/ViewEditSubControllerTest.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package org.openecomp.vid.controller;
-
-import javax.servlet.http.HttpServletRequest;
-
-import org.junit.Test;
-import org.springframework.web.servlet.ModelAndView;
-
-public class ViewEditSubControllerTest {
-
- private ViewEditSubController createTestSubject() {
- return new ViewEditSubController();
- }
-
- @Test
- public void testWelcome() throws Exception {
- ViewEditSubController testSubject;
- HttpServletRequest request = null;
- ModelAndView result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.welcome(request);
- }
-
-
- @Test
- public void testGetViewName() throws Exception {
- ViewEditSubController testSubject;
- String result;
-
- // default test
- testSubject = createTestSubject();
- result = testSubject.getViewName();
- }
-
- @Test
- public void testSetViewName() throws Exception {
- ViewEditSubController testSubject;
- String viewName = "";
-
- // default test
- testSubject = createTestSubject();
- testSubject.setViewName(viewName);
- }
-} \ No newline at end of file