MCPcopy Create free account
hub / github.com/ReadyTalk/avian / main

Method main

test/ZipOutputStreamTest.java:44–58  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

42 private static byte[] buffer = new byte[1024];
43
44 public static void main(String[] args)
45 {
46 List<File> zipFiles = new ArrayList<File>(2);
47
48 // Test 1-param write function
49 File f1 = createZip(USE_ONE_PARAM_WRITE);
50 zipFiles.add(f1);
51 verifyContents(f1.getAbsolutePath());
52 // Test 3-param write function
53 File f2 = createZip(USE_THREE_PARAM_WRITE);
54 zipFiles.add(f2);
55 verifyContents(f2.getAbsolutePath());
56 // Remove the created zip files
57 cleanUp(zipFiles);
58 }
59
60 private static File createZip(boolean useOneParam)
61 {

Callers

nothing calls this directly

Calls 5

createZipMethod · 0.95
addMethod · 0.95
verifyContentsMethod · 0.95
getAbsolutePathMethod · 0.95
cleanUpMethod · 0.95

Tested by

no test coverage detected