KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > junitx > util > ZipArchiveSuiteBuilderTest


1 package junitx.util;
2
3 import java.util.List JavaDoc;
4
5 /**
6  * @version $Revision: 1.1 $ $Date: 2003/02/05 10:27:29 $
7  * @author <a HREF="mailto:vbossica@users.sourceforge.net">Vladimir R. Bossicard</a>
8  */

9 public class ZipArchiveSuiteBuilderTest
10         extends AbstractArchiveSuiteBuilderTest {
11
12     public ZipArchiveSuiteBuilderTest(String JavaDoc name) {
13         super(name);
14     }
15
16     protected String JavaDoc getFilename() {
17         return XMLPropertyManager.getProperty("tests.zip");
18     }
19
20     public void testBrowse()
21             throws Exception JavaDoc {
22         ArchiveSuiteBuilder builder = new ArchiveSuiteBuilder();
23
24         List JavaDoc classes = builder.browse(this.file);
25
26         assertEquals(2, classes.size());
27         assertTrue(classes.contains("junitx.example.packageA.SampleAZipTest"));
28         assertTrue(classes.contains("junitx.example.packageA.packageB.SampleBZipTest"));
29     }
30
31 }
32
Popular Tags