Upgrade sonar plugin
[vid.git] / vid-app-common / src / test / java / org / openecomp / vid / controller / AaiControllerTest.java
1 package org.openecomp.vid.controller;
2
3 import javax.servlet.http.HttpServletRequest;
4
5 import org.json.simple.JSONObject;
6 import org.junit.Test;
7 import org.springframework.http.ResponseEntity;
8 import org.springframework.web.servlet.ModelAndView;
9
10 public class AaiControllerTest {
11
12         private AaiController createTestSubject() {
13                 return new AaiController();
14         }
15
16         @Test
17         public void testParseCustomerObjectForTenants() throws Exception {
18                 JSONObject jsonObject = null;
19                 String result;
20
21                 // default test
22                 result = AaiController.parseCustomerObjectForTenants(jsonObject);
23         }
24
25         @Test
26         public void testParseServiceSubscriptionObjectForTenants() throws Exception {
27                 JSONObject jsonObject = null;
28                 String result;
29
30                 // default test
31                 result = AaiController.parseServiceSubscriptionObjectForTenants(jsonObject);
32         }
33
34         @Test
35         public void testWelcome() throws Exception {
36                 AaiController testSubject;
37                 HttpServletRequest request = null;
38                 ModelAndView result;
39
40                 // default test
41                 testSubject = createTestSubject();
42                 result = testSubject.welcome(request);
43         }
44
45         @Test
46         public void testGetViewName() throws Exception {
47                 AaiController testSubject;
48                 String result;
49
50                 // default test
51                 testSubject = createTestSubject();
52                 result = testSubject.getViewName();
53         }
54
55         @Test
56         public void testSetViewName() throws Exception {
57                 AaiController testSubject;
58                 String viewName = "";
59
60                 // default test
61                 testSubject = createTestSubject();
62                 testSubject.setViewName(viewName);
63         }
64
65         @Test
66         public void testGetTargetProvStatus() throws Exception {
67                 AaiController testSubject;
68                 ResponseEntity<String> result;
69
70                 // default test
71                 testSubject = createTestSubject();
72                 result = testSubject.getTargetProvStatus();
73         }
74
75         @Test
76         public void testViewEditGetTenantsFromServiceType() throws Exception {
77                 AaiController testSubject;
78                 HttpServletRequest request = null;
79                 String globalCustomerId = "";
80                 String serviceType = "";
81                 ResponseEntity<String> result;
82
83                 // default test
84                 testSubject = createTestSubject();
85                 result = testSubject.viewEditGetTenantsFromServiceType(request, globalCustomerId, serviceType);
86         }
87
88 }