Search in sources :

Example 1 with DeploymentManifestManagerImpl

use of org.apache.aries.application.deployment.management.impl.DeploymentManifestManagerImpl in project aries by apache.

the class DeploymentGeneratorTest method setup.

@Before
public void setup() throws Exception {
    appMetadata = Skeleton.newMock(ApplicationMetadata.class);
    Skeleton.getSkeleton(appMetadata).setReturnValue(new MethodCall(ApplicationMetadata.class, "getApplicationSymbolicName"), "aries.test");
    Skeleton.getSkeleton(appMetadata).setReturnValue(new MethodCall(ApplicationMetadata.class, "getApplicationVersion"), new Version("1.0.0"));
    Skeleton.getSkeleton(appMetadata).setReturnValue(new MethodCall(ApplicationMetadata.class, "getUseBundles"), Collections.EMPTY_LIST);
    app = Skeleton.newMock(AriesApplication.class);
    Skeleton.getSkeleton(app).setReturnValue(new MethodCall(AriesApplication.class, "getApplicationMetadata"), appMetadata);
    deplMFMgr = new DeploymentManifestManagerImpl();
    deplMFMgr.setResolver(_resolver);
    deplMFMgr.setLocalPlatform(localPlatform);
    deplMFMgr.setModellingManager(modellingManager);
    deplMFMgr.setModellingHelper(modellingHelper);
    deplMFMgr.setPreResolveHooks(new ArrayList<PreResolveHook>());
}
Also used : ApplicationMetadata(org.apache.aries.application.ApplicationMetadata) Version(org.osgi.framework.Version) DeploymentManifestManagerImpl(org.apache.aries.application.deployment.management.impl.DeploymentManifestManagerImpl) AriesApplication(org.apache.aries.application.management.AriesApplication) PreResolveHook(org.apache.aries.application.management.spi.resolve.PreResolveHook) MethodCall(org.apache.aries.unittest.mocks.MethodCall) Before(org.junit.Before)

Aggregations

ApplicationMetadata (org.apache.aries.application.ApplicationMetadata)1 DeploymentManifestManagerImpl (org.apache.aries.application.deployment.management.impl.DeploymentManifestManagerImpl)1 AriesApplication (org.apache.aries.application.management.AriesApplication)1 PreResolveHook (org.apache.aries.application.management.spi.resolve.PreResolveHook)1 MethodCall (org.apache.aries.unittest.mocks.MethodCall)1 Before (org.junit.Before)1 Version (org.osgi.framework.Version)1