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