(String[] args)
| 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 | { |
nothing calls this directly
no test coverage detected