Search in sources :

Example 11 with BundleManifest

use of org.apache.aries.util.manifest.BundleManifest in project aries by apache.

the class EJBModellerTest method testModelServicesNoExportEJB.

@Test
public void testModelServicesNoExportEJB() throws ModellerException {
    Manifest man = new Manifest();
    setBasicHeaders(man);
    modeller.modelServices(new BundleManifest(man), bundleLocation);
    ejbLocator.assertSkeletonNotCalled();
}
Also used : BundleManifest(org.apache.aries.util.manifest.BundleManifest) Manifest(java.util.jar.Manifest) BundleManifest(org.apache.aries.util.manifest.BundleManifest) Test(org.junit.Test)

Example 12 with BundleManifest

use of org.apache.aries.util.manifest.BundleManifest in project aries by apache.

the class EJBLocatorTest method runTest.

private void runTest(byte[] zip, String manifest) throws ModellerException, IOException {
    ICloseableDirectory icd = FileSystem.getFSRoot(new ByteArrayInputStream(zip));
    new OpenEJBLocator().findEJBs(new BundleManifest(getClass().getClassLoader().getResourceAsStream(manifest)), icd, registry);
    icd.close();
}
Also used : ByteArrayInputStream(java.io.ByteArrayInputStream) ICloseableDirectory(org.apache.aries.util.filesystem.ICloseableDirectory) BundleManifest(org.apache.aries.util.manifest.BundleManifest)

Aggregations

BundleManifest (org.apache.aries.util.manifest.BundleManifest)12 Manifest (java.util.jar.Manifest)5 Test (org.junit.Test)4 IOException (java.io.IOException)3 IFile (org.apache.aries.util.filesystem.IFile)3 File (java.io.File)2 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 BundleInfo (org.apache.aries.application.management.BundleInfo)2 ModellerException (org.apache.aries.application.modelling.ModellerException)2 SimpleBundleInfo (org.apache.aries.application.utils.management.SimpleBundleInfo)2 EJBLocator (org.apache.aries.ejb.modelling.EJBLocator)2 MethodCall (org.apache.aries.unittest.mocks.MethodCall)2 ICloseableDirectory (org.apache.aries.util.filesystem.ICloseableDirectory)2 ByteArrayInputStream (java.io.ByteArrayInputStream)1 InputStream (java.io.InputStream)1 String (java.lang.String)1 Field (java.lang.reflect.Field)1 MalformedURLException (java.net.MalformedURLException)1 Iterator (java.util.Iterator)1