Add common-app-api unit tests
[sdc.git] / common-app-api / src / test / java / org / openecomp / sdc / common / util / ZipUtilTest.java
1 package org.openecomp.sdc.common.util;
2
3 import java.util.Map;
4 import java.util.zip.ZipInputStream;
5
6 import javax.annotation.Generated;
7
8 import org.junit.Test;
9
10 public class ZipUtilTest {
11
12         // private ZipUtil createTestSubject() {
13         // return new ZipUtil();
14         // }
15
16         @Test
17         public void testReadZip() throws Exception {
18                 byte[] zipAsBytes = new byte[] { ' ' };
19                 Map<String, byte[]> result;
20
21                 // default test
22                 result = ZipUtil.readZip(zipAsBytes);
23         }
24
25         @Test
26         public void testMain() throws Exception {
27                 String[] args = new String[] { "" };
28
29                 // default test
30                 ZipUtil.main(args);
31         }
32
33         @Test
34         public void testZipBytes() throws Exception {
35                 byte[] input = new byte[] { ' ' };
36                 byte[] result;
37
38                 // default test
39                 result = ZipUtil.zipBytes(input);
40         }
41
42         @Test
43         public void testUnzip() throws Exception {
44                 byte[] zipped = new byte[] { ' ' };
45                 byte[] result;
46
47                 // default test
48                 result = ZipUtil.unzip(zipped);
49         }
50 }