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