aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/onap/vid/policy/PolicyUtilTest.java
blob: 566d17c11e108541fd010866a0ee5f5c10422cff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package org.onap.vid.policy;

import org.apache.poi.hssf.record.formula.functions.T;
import org.glassfish.jersey.client.ClientResponse;
import org.junit.Assert;
import org.junit.Test;

public class PolicyUtilTest {

	private PolicyUtil createTestSubject() {
		return new PolicyUtil();
	}

	@Test
	public void testWrapResponse() throws Exception {
		String body = "";
		int statusCode = 0;
		PolicyResponseWrapper result;

		// default test
		result = PolicyUtil.wrapResponse(body, statusCode);
	}


	@Test
	public void testWrapResponse_2() throws Exception {
		RestObject<String> rs = null;
		PolicyResponseWrapper result;

		// test 1
		rs = null;
		result = PolicyUtil.wrapResponse(rs);
		Assert.assertNotNull(result);
	}

	@Test
	public void testConvertPojoToString() throws Exception {
		T t = null;
		String result;

		// test 1
		t = null;
		result = PolicyUtil.convertPojoToString(t);
		Assert.assertEquals("", result);
	}

	@Test
	public void testMain() throws Exception {
		String[] args = new String[] { "" };

		// default test
		PolicyUtil.main(args);
	}
}