aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/openecomp/vid/mso/MsoUtilTest.java
blob: 6a9816e3c1516224093aaedc9d3eb2cedf5a04a9 (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
package org.openecomp.vid.mso;

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 MsoUtilTest {

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

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

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


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

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

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

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

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

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