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

Bug 289447

Summary: Use of require-bundle for org.junit
Product: [RT] RAP Reporter: Jens Borrmann <jens.borrmann>
Component: RelengAssignee: Project Inbox <rap-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 300489    
Bug Blocks:    

Description Jens Borrmann CLA 2009-09-15 07:14:14 EDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Build Identifier: 1.3.0.20090817-1725

The test plugins org.eclipse.rap.junit and org.eclipse.rap.junit.runtime should not get their JUnit dependencies via Require-Bundle, but by using Import-Package. Require-Bundle is acceptable for *eclipse*-bundles, but should not be used for JUnit, which can also be retrieved from other places (e.g. SpringSource Repository) and then have a different bundle symbolic name.

This has been reported before: http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.swtbot/msg00444.html, but I did not find a corresponding bug.

Reproducible: Always
Comment 1 Jens Borrmann CLA 2009-09-16 04:09:18 EDT
changed platform and OS settings.
Comment 2 RĂ¼diger Herrmann CLA 2010-01-20 12:19:48 EST
org.eclipse.rap.junit has a dependency on org.eclipse.jdt.junit.runtime, which in turn requires org.junit (via Require-Bundle)
As a result, resolving this issue wouldn't help much unless the JDT JUnit plug-in also expresses its dependency via Import-Package.
Please re-open if the JDT issue is resolved or there is at least a bug we can add a dependency on.
Comment 3 Jens Borrmann CLA 2010-01-22 09:04:12 EST
Depends on https://bugs.eclipse.org/bugs/show_bug.cgi?id=300489
Comment 4 RĂ¼diger Herrmann CLA 2010-04-14 10:02:11 EDT
Since bug 300489 was closed as WONTFIX and this bug depends on it, I will do the same here.