summaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/openecomp/vid/controller/PropertyControllerTest.java
blob: cf7ada46a452f5adb52a1347bebf9d8204517f18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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);
	}
}