Search in sources :

Example 1 with ZipImporter

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);
}
Also used : ZipImporter(org.jboss.shrinkwrap.api.importer.ZipImporter) File(java.io.File) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) ModulesTest(org.jboss.ceylon.test.modules.ModulesTest) Test(org.junit.Test)

Aggregations

File (java.io.File)1 ModulesTest (org.jboss.ceylon.test.modules.ModulesTest)1 ZipImporter (org.jboss.shrinkwrap.api.importer.ZipImporter)1 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)1 Test (org.junit.Test)1