Search in sources :

Example 21 with Subsystem

use of org.osgi.service.subsystem.Subsystem in project aries by apache.

the class SubsystemDependency_4ATest method verifyBundleEWiredToCapability_yFromBundleB.

@Test
public void verifyBundleEWiredToCapability_yFromBundleB() throws Exception {
    Subsystem s = installSubsystemFromFile(APPLICATION_A);
    startSubsystem(s);
    verifyCapabilityWiring(s, BUNDLE_E, "y", BUNDLE_B);
    stopSubsystem(s);
    uninstallSubsystem(s);
}
Also used : Subsystem(org.osgi.service.subsystem.Subsystem) Test(org.junit.Test)

Example 22 with Subsystem

use of org.osgi.service.subsystem.Subsystem in project aries by apache.

the class SubsystemDependency_4ATest method verifyBundleCWiredToPackageXFromBundleA.

@Test
public void verifyBundleCWiredToPackageXFromBundleA() throws Exception {
    Subsystem s = installSubsystemFromFile(APPLICATION_A);
    startSubsystem(s);
    verifySinglePackageWiring(s, BUNDLE_C, "x", BUNDLE_A);
    stopSubsystem(s);
    uninstallSubsystem(s);
}
Also used : Subsystem(org.osgi.service.subsystem.Subsystem) Test(org.junit.Test)

Example 23 with Subsystem

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);
}
Also used : Subsystem(org.osgi.service.subsystem.Subsystem) Test(org.junit.Test)

Example 24 with Subsystem

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);
}
Also used : Subsystem(org.osgi.service.subsystem.Subsystem) Test(org.junit.Test)

Example 25 with Subsystem

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);
}
Also used : Subsystem(org.osgi.service.subsystem.Subsystem) Test(org.junit.Test)

Aggregations

Subsystem (org.osgi.service.subsystem.Subsystem)187 Test (org.junit.Test)151 SubsystemTest (org.apache.aries.subsystem.itests.SubsystemTest)78 AriesSubsystem (org.apache.aries.subsystem.AriesSubsystem)52 SubsystemException (org.osgi.service.subsystem.SubsystemException)50 Bundle (org.osgi.framework.Bundle)48 SubsystemArchiveBuilder (org.apache.aries.subsystem.itests.util.SubsystemArchiveBuilder)31 BundleArchiveBuilder (org.apache.aries.subsystem.itests.util.BundleArchiveBuilder)22 BasicSubsystem (org.apache.aries.subsystem.core.internal.BasicSubsystem)19 IOException (java.io.IOException)11 Hashtable (java.util.Hashtable)8 BundleContext (org.osgi.framework.BundleContext)7 File (java.io.File)6 ArrayList (java.util.ArrayList)6 TestCapability (org.apache.aries.subsystem.itests.util.TestCapability)6 ByteArrayInputStream (java.io.ByteArrayInputStream)5 Callable (java.util.concurrent.Callable)5 BundleException (org.osgi.framework.BundleException)5 FileInputStream (java.io.FileInputStream)4 Future (java.util.concurrent.Future)4