diff options
author | 2018-01-31 17:19:00 +0200 | |
---|---|---|
committer | 2018-01-31 17:19:00 +0200 | |
commit | 1cfb08779ea0e00be69e072a940b3063e049fe6b (patch) | |
tree | 6602a900387c8393ed0dcd81c0539381632903c6 /vid-app-common/src/test/java/org/openecomp/vid/controller | |
parent | 2f20b001b9243e0f8b44aecc768ec265fd538732 (diff) |
org.onap migration
Change-Id: I52f0b2851f2c765752b6d21f49b32136d7d72a3d
Issue-ID: VID-86
Signed-off-by: Ofir Sonsino <os0695@att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/openecomp/vid/controller')
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 |