use of org.osgi.service.subsystem.SubsystemException in project aries by apache.
the class Aries1383Test method test16b.
/*
* (16) Unscoped subsystem with a value of apache-aries-provision-dependencies
* that is the same as the scoped parent installs successfully.
*/
@Test
public void test16b() throws Exception {
Subsystem root = getRootSubsystem();
Subsystem application = installSubsystem(root, "application", new SubsystemArchiveBuilder().symbolicName("application").type(SubsystemConstants.SUBSYSTEM_TYPE_APPLICATION + ';' + AriesProvisionDependenciesDirective.INSTALL.toString()).build(), true);
try {
Subsystem feature = installSubsystem(application, "feature", new SubsystemArchiveBuilder().symbolicName("feature").type(SubsystemConstants.SUBSYSTEM_TYPE_FEATURE + ';' + AriesProvisionDependenciesDirective.INSTALL.toString()).build(), true);
uninstallSubsystemSilently(feature);
} catch (SubsystemException e) {
e.printStackTrace();
fail("Subsystem should have installed");
} finally {
uninstallSubsystemSilently(application);
}
}
Aggregations