Annotation Type InjectBundleInstaller


@Inherited @Target({FIELD,PARAMETER}) @Retention(RUNTIME) @ExtendWith(BundleInstallerExtension.class) @Documented public @interface InjectBundleInstaller
Inject BundleInstaller into test classes and methods.

The BundleInstaller implementation provided by this rule simplifies installation of embedded bundles.

Example:

 // For JUnit5
 @ExtendWith(BundleInstallerExtension.class)
 class MyTests {
        // For JUnit4
        @Rule
        BundleContextRule bcr = new BundleContextRule();

        @InjectBundleInstaller
        BundleInstaller bundleInstaller;

        @Test
        public void test() {
                // use bundleInstaller
        }
 }