Upgrade sonar plugin
[vid.git] / vid-app-common / src / test / java / org / openecomp / vid / policy / PolicyUtilTest.java
1 package org.openecomp.vid.policy;
2
3 import org.apache.poi.hssf.record.formula.functions.T;
4 import org.glassfish.jersey.client.ClientResponse;
5 import org.junit.Assert;
6 import org.junit.Test;
7
8 public class PolicyUtilTest {
9
10         private PolicyUtil createTestSubject() {
11                 return new PolicyUtil();
12         }
13
14         @Test
15         public void testWrapResponse() throws Exception {
16                 String body = "";
17                 int statusCode = 0;
18                 PolicyResponseWrapper result;
19
20                 // default test
21                 result = PolicyUtil.wrapResponse(body, statusCode);
22         }
23
24
25         @Test
26         public void testWrapResponse_2() throws Exception {
27                 RestObject<String> rs = null;
28                 PolicyResponseWrapper result;
29
30                 // test 1
31                 rs = null;
32                 result = PolicyUtil.wrapResponse(rs);
33                 Assert.assertNotNull(result);
34         }
35
36         @Test
37         public void testConvertPojoToString() throws Exception {
38                 T t = null;
39                 String result;
40
41                 // test 1
42                 t = null;
43                 result = PolicyUtil.convertPojoToString(t);
44                 Assert.assertEquals("", result);
45         }
46
47         @Test
48         public void testMain() throws Exception {
49                 String[] args = new String[] { "" };
50
51                 // default test
52                 PolicyUtil.main(args);
53         }
54 }