Unit tests
[vid.git] / vid-app-common / src / test / java / org / onap / vid / controllers / PolicyControllerTest.java
1 package org.onap.vid.controllers;
2
3 import javax.servlet.http.HttpServletRequest;
4
5 import org.json.simple.JSONObject;
6 import org.junit.Test;
7 import org.onap.vid.policy.PolicyResponseWrapper;
8 import org.springframework.http.ResponseEntity;
9
10 public class PolicyControllerTest {
11
12     private PolicyController createTestSubject() {
13         return new PolicyController();
14     }
15
16     @Test
17     public void testGetPolicyInfo() throws Exception {
18         PolicyController testSubject;
19         HttpServletRequest request = null;
20         JSONObject policy_request = null;
21         ResponseEntity<String> result;
22
23         // default test
24         try {
25         testSubject = createTestSubject();
26         result = testSubject.getPolicyInfo(request, policy_request);
27         }catch(Exception e){}
28     }
29
30 }