1 package org.onap.vid.policy;
3 import org.glassfish.jersey.client.ClientResponse;
4 import org.junit.Assert;
7 public class PolicyUtilTest {
9 private PolicyUtil createTestSubject() {
10 return new PolicyUtil();
14 public void testWrapResponse() throws Exception {
17 PolicyResponseWrapper result;
20 result = PolicyUtil.wrapResponse(body, statusCode);
25 public void testWrapResponse_2() throws Exception {
26 RestObject<String> rs = null;
27 PolicyResponseWrapper result;
31 result = PolicyUtil.wrapResponse(rs);
32 Assert.assertNotNull(result);
36 public void testConvertPojoToString() throws Exception {
40 result = PolicyUtil.convertPojoToString(null);
41 Assert.assertEquals("", result);
45 public void testMain() throws Exception {
46 String[] args = new String[] { "" };
49 PolicyUtil.main(args);