1 package junitx.util; 2 3 import java.util.List ; 4 5 9 public class JarArchiveSuiteBuilderTest 10 extends AbstractArchiveSuiteBuilderTest { 11 12 public JarArchiveSuiteBuilderTest(String name) { 13 super(name); 14 } 15 16 protected String getFilename() { 17 return XMLPropertyManager.getProperty("tests.jar"); 18 } 19 20 public void testBrowse() 21 throws Exception { 22 ArchiveSuiteBuilder builder = new ArchiveSuiteBuilder(); 23 24 List classes = builder.browse(this.file); 25 26 assertEquals(2, classes.size()); 27 assertTrue(classes.contains("junitx.example.packageA.SampleAJarTest")); 28 assertTrue(classes.contains("junitx.example.packageA.packageB.SampleBJarTest")); 29 } 30 31 } 32 | Popular Tags |