Improve SONAR coverage
[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.Assert;
7 import org.junit.Test;
8 import org.openecomp.vid.aai.AaiResponse;
9 import org.openecomp.vid.model.VersionByInvariantIdsRequest;
10 import org.springframework.http.ResponseEntity;
11 import org.springframework.web.servlet.ModelAndView;
12
13 public class AaiControllerTest {
14
15         private AaiController createTestSubject() {
16                 return new AaiController();
17         }
18
19         @Test
20         public void testParseCustomerObjectForTenants() throws Exception {
21                 JSONObject jsonObject = null;
22                 String result;
23
24                 // default test
25                 result = AaiController.parseCustomerObjectForTenants(jsonObject);
26         }
27
28         @Test
29         public void testParseServiceSubscriptionObjectForTenants() throws Exception {
30                 JSONObject jsonObject = null;
31                 String result;
32
33                 // default test
34                 result = AaiController.parseServiceSubscriptionObjectForTenants(jsonObject);
35         }
36
37         @Test
38         public void testWelcome() throws Exception {
39                 AaiController testSubject;
40                 HttpServletRequest request = null;
41                 ModelAndView result;
42
43                 // default test
44                 testSubject = createTestSubject();
45                 result = testSubject.welcome(request);
46         }
47
48         @Test
49         public void testGetViewName() throws Exception {
50                 AaiController testSubject;
51                 String result;
52
53                 // default test
54                 testSubject = createTestSubject();
55                 result = testSubject.getViewName();
56         }
57
58         @Test
59         public void testSetViewName() throws Exception {
60                 AaiController testSubject;
61                 String viewName = "";
62
63                 // default test
64                 testSubject = createTestSubject();
65                 testSubject.setViewName(viewName);
66         }
67
68
69         @Test
70         public void testGetTargetProvStatus() throws Exception {
71                 AaiController testSubject;
72                 ResponseEntity<String> result;
73
74                 // default test
75                 testSubject = createTestSubject();
76                 result = testSubject.getTargetProvStatus();
77         }
78
79         
80
81         @Test
82         public void testViewEditGetTenantsFromServiceType() throws Exception {
83                 AaiController testSubject;
84                 HttpServletRequest request = null;
85                 String globalCustomerId = "";
86                 String serviceType = "";
87                 ResponseEntity<String> result;
88
89                 // default test
90                 testSubject = createTestSubject();
91                 result = testSubject.viewEditGetTenantsFromServiceType(request, globalCustomerId, serviceType);
92         }
93
94         
95 }