KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > jbi > mock > MockZipFile


1 package org.objectweb.petals.jbi.mock;
2
3 import java.io.File JavaDoc;
4 import java.io.IOException JavaDoc;
5 import java.util.zip.ZipException JavaDoc;
6 import java.util.zip.ZipFile JavaDoc;
7
8 public class MockZipFile extends ZipFile JavaDoc {
9
10     public MockZipFile(File JavaDoc file) throws ZipException JavaDoc, IOException JavaDoc {
11         super(file);
12     }
13
14     @Override JavaDoc
15     public void close() throws IOException JavaDoc {
16         throw new IOException JavaDoc("close testing exception");
17     }
18
19 }
20
Popular Tags