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

Bug 286049

Summary: Improve error message when plug-in can't be found while running tests
Product: [Eclipse Project] PDE Reporter: Pascal Rapicault <pascal>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: markus.kell.r, Michael_Rennie
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Pascal Rapicault CLA 2009-08-08 09:23:53 EDT
When using PDE Junit to run tests, if the bundle in which the test class is supposed to be found is not resolved or installed, the user is presented with the following horrible stacktrace.
We should be a bit more explicit like "the bundle X is not resolved or installed", and if possible we should try to provide an explanation as to why and / or what to do.


Caused by: java.lang.IllegalArgumentException: No Classloader found for plug-in org.eclipse.equinox.p2.tests
	at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.getClassLoader(RemotePluginTestRunner.java:77)
	at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.getTestClassLoader(RemotePluginTestRunner.java:71)
...
Comment 1 Markus Keller CLA 2010-04-09 09:59:50 EDT
*** Bug 290440 has been marked as a duplicate of this bug. ***
Comment 2 Markus Keller CLA 2010-04-09 10:02:59 EDT

*** This bug has been marked as a duplicate of bug 307076 ***