diff options
author | 2018-03-18 16:06:37 +0200 | |
---|---|---|
committer | 2018-03-18 16:06:37 +0200 | |
commit | 8fdf2dee7684f4911a58a2350626300af52b6e4d (patch) | |
tree | 656b4e847e097838f470a468c92aa7a1ebc282d6 /vid-app-common/src/test/java/org/onap/vid/controller | |
parent | c9d63f49af5455f503ca63395121b7cd4d8c8c88 (diff) |
Unit tests
Change-Id: I9ff2a916f09856e3a79d037a8815224ddb9e7a9b
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/controller')
4 files changed, 113 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/controller/test/TestAaiControllerTest.java b/vid-app-common/src/test/java/org/onap/vid/controller/test/TestAaiControllerTest.java new file mode 100644 index 00000000..c05db9b9 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/controller/test/TestAaiControllerTest.java @@ -0,0 +1,27 @@ +package org.onap.vid.controller.test; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.junit.Test; + +public class TestAaiControllerTest { + + private TestAaiController createTestSubject() { + return new TestAaiController(); + } + + @Test + public void testGetSubscriptionServiceTypeList() throws Exception { + TestAaiController testSubject; + String globalCustomerId = ""; + HttpServletRequest request = null; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSubscriptionServiceTypeList(globalCustomerId, request); + } + + +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/controller/test/TestAsdcControllerTest.java b/vid-app-common/src/test/java/org/onap/vid/controller/test/TestAsdcControllerTest.java new file mode 100644 index 00000000..0e7a6033 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/controller/test/TestAsdcControllerTest.java @@ -0,0 +1,26 @@ +package org.onap.vid.controller.test; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.junit.Test; + +public class TestAsdcControllerTest { + + private TestAsdcController createTestSubject() { + return new TestAsdcController(); + } + + @Test + public void testGetModel() throws Exception { + TestAsdcController testSubject; + String modelId = ""; + HttpServletRequest request = null; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getModel(modelId, request); + } + +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/controller/test/TestMsoControllerTest.java b/vid-app-common/src/test/java/org/onap/vid/controller/test/TestMsoControllerTest.java new file mode 100644 index 00000000..e5d62c7d --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/controller/test/TestMsoControllerTest.java @@ -0,0 +1,29 @@ +package org.onap.vid.controller.test; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.junit.Test; +import org.springframework.http.ResponseEntity; + +public class TestMsoControllerTest { + + private TestMsoController createTestSubject() { + return new TestMsoController(); + } + + + @Test + public void testGetOrchestrationRequests() throws Exception { + TestMsoController testSubject; + String filterString = ""; + HttpServletRequest request = null; + ResponseEntity<String> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOrchestrationRequests(filterString, request); + } + + +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/controller/test/TestPageControllerTest.java b/vid-app-common/src/test/java/org/onap/vid/controller/test/TestPageControllerTest.java new file mode 100644 index 00000000..f47eb407 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/controller/test/TestPageControllerTest.java @@ -0,0 +1,31 @@ +package org.onap.vid.controller.test; + +import org.junit.Test; +import org.springframework.web.servlet.ModelAndView; + +public class TestPageControllerTest { + + private TestPageController createTestSubject() { + return new TestPageController(); + } + + @Test + public void testTestMsoPage() throws Exception { + TestPageController testSubject; + ModelAndView result; + + // default test + testSubject = createTestSubject(); + result = testSubject.testMsoPage(); + } + + @Test + public void testTestViewEditPage() throws Exception { + TestPageController testSubject; + ModelAndView result; + + // default test + testSubject = createTestSubject(); + result = testSubject.testViewEditPage(); + } +}
\ No newline at end of file |