()
| 196 | } |
| 197 | |
| 198 | public void testPreserveRoot() throws Exception { |
| 199 | File dest = File.createTempFile("temp", null); |
| 200 | File parent = new File(getClass().getResource("TestFile.txt").getPath()).getParentFile(); |
| 201 | ZipUtil.pack(parent, dest, true); |
| 202 | ZipUtil.explode(dest); |
| 203 | assertTrue((new File(dest, parent.getName())).exists()); |
| 204 | } |
| 205 | |
| 206 | private void unexplodeWithException(File file, String message) { |
| 207 | boolean ok = false; |
nothing calls this directly
no outgoing calls
no test coverage detected