1 package org.openecomp.vid.controller;
3 import javax.servlet.http.HttpServletRequest;
6 import org.springframework.http.ResponseEntity;
7 import org.springframework.web.servlet.ModelAndView;
9 public class PropertyControllerTest {
11 private PropertyController createTestSubject() {
12 return new PropertyController();
16 public void testWelcome() throws Exception {
17 PropertyController testSubject;
18 HttpServletRequest request = null;
22 testSubject = createTestSubject();
23 result = testSubject.welcome(request);
27 public void testGetViewName() throws Exception {
28 PropertyController testSubject;
32 testSubject = createTestSubject();
33 result = testSubject.getViewName();
37 public void testSetViewName() throws Exception {
38 PropertyController testSubject;
39 String _viewName = "";
42 testSubject = createTestSubject();
43 testSubject.setViewName(_viewName);
47 public void testGetProperty() throws Exception {
48 PropertyController testSubject;
50 String defaultvalue = "";
51 HttpServletRequest request = null;
52 ResponseEntity<String> result;
55 testSubject = createTestSubject();
56 result = testSubject.getProperty(name, defaultvalue, request);