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