Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332974

Summary: Extend virgo test @BundleDependencies annotation with auto-start option
Product: [RT] Virgo Reporter: Dmitry Sklyut <dmitry>
Component: unknownAssignee: Dmitry Sklyut <dmitry>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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