diff options
author | Ofir Sonsino <os0695@att.com> | 2018-02-20 18:03:30 +0200 |
---|---|---|
committer | Ofir Sonsino <os0695@intl.att.com> | 2018-02-27 14:47:52 +0200 |
commit | efedea1c5d80532f5b1180d57c8dafce5dcb302a (patch) | |
tree | c4bdefe8758b01f31c9e91a9ded0ab989daeb5e2 /vid-app-common/src/test/java/org/onap/vid/controllers/PropertyControllerTest.java | |
parent | b94bd70f1595fad9546c3506393613f68504f495 (diff) |
org.onap migration
Change-Id: I5e2d01a6da21d4003c910b5fe0702b35c2089a77
Issue-ID: VID-86
Signed-off-by: Ofir Sonsino <os0695@intl.att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/onap/vid/controllers/PropertyControllerTest.java')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/controllers/PropertyControllerTest.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/controllers/PropertyControllerTest.java b/vid-app-common/src/test/java/org/onap/vid/controllers/PropertyControllerTest.java new file mode 100644 index 000000000..b4a6a8f96 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/controllers/PropertyControllerTest.java @@ -0,0 +1,40 @@ +package org.onap.vid.controllers; + +import javax.servlet.http.HttpServletRequest; + +import org.junit.Test; +import org.onap.vid.controllers.PropertyController; +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 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 |