aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/onap/vid/controller/PropertyControllerTest.java
blob: e9d2cfd4485953e2f20a9c1a5cffe52056db5800 (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
package org.onap.vid.controller;

import org.junit.Test;
import org.springframework.http.ResponseEntity;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

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);
	}
}