Search in sources :

Example 1 with DeploymentMetadataFactoryImpl

use of org.apache.aries.application.impl.DeploymentMetadataFactoryImpl in project aries by apache.

the class AriesApplicationManagerImplTest method setup.

@Before
public void setup() {
    _appMgr = new AriesApplicationManagerImpl();
    _appMetaFactory = new ApplicationMetadataFactoryImpl();
    DeploymentMetadataFactory dmf = new DeploymentMetadataFactoryImpl();
    _converter = new DummyConverter();
    List<BundleConverter> bundleConverters = new ArrayList<BundleConverter>();
    bundleConverters.add(_converter);
    _resolver = new DummyResolver();
    _dmMgr = new DummyDMManager();
    _dmMgr.setResolver(_resolver);
    _appMgr.setApplicationMetadataFactory(_appMetaFactory);
    _appMgr.setDeploymentMetadataFactory(dmf);
    _appMgr.setBundleConverters(bundleConverters);
    _appMgr.setDeploymentManifestManager(_dmMgr);
    _appMgr.setLocalPlatform(new DummyLocalPlatform());
}
Also used : BundleConverter(org.apache.aries.application.management.spi.convert.BundleConverter) DeploymentMetadataFactory(org.apache.aries.application.DeploymentMetadataFactory) DeploymentMetadataFactoryImpl(org.apache.aries.application.impl.DeploymentMetadataFactoryImpl) ArrayList(java.util.ArrayList) ApplicationMetadataFactoryImpl(org.apache.aries.application.impl.ApplicationMetadataFactoryImpl) Before(org.junit.Before)

Aggregations

ArrayList (java.util.ArrayList)1 DeploymentMetadataFactory (org.apache.aries.application.DeploymentMetadataFactory)1 ApplicationMetadataFactoryImpl (org.apache.aries.application.impl.ApplicationMetadataFactoryImpl)1 DeploymentMetadataFactoryImpl (org.apache.aries.application.impl.DeploymentMetadataFactoryImpl)1 BundleConverter (org.apache.aries.application.management.spi.convert.BundleConverter)1 Before (org.junit.Before)1