Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332974 - Extend virgo test @BundleDependencies annotation with auto-start option
Summary: Extend virgo test @BundleDependencies annotation with auto-start option
Status: RESOLVED FIXED
Alias: None
Product: Virgo
Classification: RT
Component: unknown (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Dmitry Sklyut CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 333598 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-20 16:18 EST by Dmitry Sklyut CLA
Modified: 2011-02-28 11:49 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Sklyut CLA 2010-12-20 16:18:12 EST
BundleDependencies annotation can be used to specify extra bundles needed by the specific test case.
This is cleaner than specifying all entries in the test.config.properties or in org.eclipse.virgo.kernel.userregion.properties.

One thing that is missing - code in OsgiTestRunner.addUserConfiguredBundles does not account for "auto-start" setting.

With this change BundleDependencies can be changed like this:

<code>

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface BundleDependencies {

	BundleEnty[] value();
}

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface BundleEnty { 

    String value();
    boolean autoStart() default false;
}
</code>
Comment 1 Dmitry Sklyut CLA 2011-01-06 11:23:33 EST
*** Bug 333598 has been marked as a duplicate of this bug. ***
Comment 2 Dmitry Sklyut CLA 2011-02-28 11:49:06 EST
Fixed with commit 53e9d9cbd5eea133b74adfb590750ad8834ca4b3