summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/test/java/org/openecomp/sdc/common/util/ZipUtilTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'common-app-api/src/test/java/org/openecomp/sdc/common/util/ZipUtilTest.java')
-rw-r--r--common-app-api/src/test/java/org/openecomp/sdc/common/util/ZipUtilTest.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/util/ZipUtilTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/util/ZipUtilTest.java
new file mode 100644
index 0000000000..314208554d
--- /dev/null
+++ b/common-app-api/src/test/java/org/openecomp/sdc/common/util/ZipUtilTest.java
@@ -0,0 +1,50 @@
+package org.openecomp.sdc.common.util;
+
+import java.util.Map;
+import java.util.zip.ZipInputStream;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+
+public class ZipUtilTest {
+
+ // private ZipUtil createTestSubject() {
+ // return new ZipUtil();
+ // }
+
+ @Test
+ public void testReadZip() throws Exception {
+ byte[] zipAsBytes = new byte[] { ' ' };
+ Map<String, byte[]> result;
+
+ // default test
+ result = ZipUtil.readZip(zipAsBytes);
+ }
+
+ @Test
+ public void testMain() throws Exception {
+ String[] args = new String[] { "" };
+
+ // default test
+ ZipUtil.main(args);
+ }
+
+ @Test
+ public void testZipBytes() throws Exception {
+ byte[] input = new byte[] { ' ' };
+ byte[] result;
+
+ // default test
+ result = ZipUtil.zipBytes(input);
+ }
+
+ @Test
+ public void testUnzip() throws Exception {
+ byte[] zipped = new byte[] { ' ' };
+ byte[] result;
+
+ // default test
+ result = ZipUtil.unzip(zipped);
+ }
+} \ No newline at end of file