use of org.jboss.shrinkwrap.api.importer.ZipImporter in project ceylon by eclipse.
the class DefaultTestCase method testVisibility.
@Test
public void testVisibility() throws Throwable {
JavaArchive module = ShrinkWrap.create(JavaArchive.class, "biz.wiz.quiz-1.0.0.GA.car");
module.addClasses($module_.class, run_.class);
File defaultFile = new File(getRepo(), "default/default.car");
Assert.assertTrue(defaultFile.exists());
JavaArchive lib = ShrinkWrap.create(JavaArchive.class, "default.car");
ZipImporter zipImporter = lib.as(ZipImporter.class);
zipImporter.importFrom(defaultFile);
testArchive(module, lib);
}
Aggregations