use of org.osgi.service.subsystem.Subsystem in project aries by apache.
the class Aries1442Test method createFeature.
private Subsystem createFeature() throws Exception {
Subsystem root = getRootSubsystem();
Subsystem feature = installSubsystem(root, "feature", new SubsystemArchiveBuilder().symbolicName("feature").type(SubsystemConstants.SUBSYSTEM_TYPE_FEATURE).bundle("a", new BundleArchiveBuilder().symbolicName("a").exportPackage("a").build()).build(), true);
uninstallableSubsystems.add(feature);
startSubsystem(feature, true);
stoppableSubsystems.add(feature);
return feature;
}
use of org.osgi.service.subsystem.Subsystem in project aries by apache.
the class Aries1442Test method testPersistedFeature.
@Test
public void testPersistedFeature() throws Exception {
createFeature();
restartSubsystemsImplBundle();
Subsystem root = getRootSubsystem();
Subsystem feature = getChild(root, "feature", null, SubsystemConstants.SUBSYSTEM_TYPE_FEATURE);
assertFeature(feature);
}
use of org.osgi.service.subsystem.Subsystem in project aries by apache.
the class SubsystemDependency_4BTest method verifyBundleCWiredToPackage_xFromBundleA.
@Test
public void verifyBundleCWiredToPackage_xFromBundleA() throws Exception {
Subsystem s = installSubsystemFromFile(APPLICATION_B);
startSubsystem(s);
verifySinglePackageWiring(s, BUNDLE_C, "x", BUNDLE_A);
stopSubsystem(s);
}
use of org.osgi.service.subsystem.Subsystem in project aries by apache.
the class SubsystemDependency_4BTest method verifyBundleDWiredToBundleA.
@Test
public void verifyBundleDWiredToBundleA() throws Exception {
Subsystem s = installSubsystemFromFile(APPLICATION_B);
startSubsystem(s);
verifyRequireBundleWiring(s, BUNDLE_D, BUNDLE_A);
stopSubsystem(s);
}
use of org.osgi.service.subsystem.Subsystem in project aries by apache.
the class SubsystemDependency_4BTest method verifyBundleEWiredToCapability_yFromBundleB.
@Test
public void verifyBundleEWiredToCapability_yFromBundleB() throws Exception {
Subsystem s = installSubsystemFromFile(APPLICATION_B);
startSubsystem(s);
verifyCapabilityWiring(s, BUNDLE_E, "y", BUNDLE_B);
stopSubsystem(s);
}
Aggregations