Converting JUnit tests to 3.3 [message #245361] |
Sun, 08 July 2007 08:32  |
Eclipse User |
|
|
|
Hi,
I am trying to migrate an RCP app to Europa. The app runs OK, but the
Unit Tests fail. Using JUnit 4, I get an exception:
Exception in thread "WorkbenchTestable" org.eclipse.swt.SWTException:
Failed to execute runnable (java.lang.IllegalArgumentException: No
Classloader found for plug-in org.eclipse.jdt.junit4.runtime)
at org.eclipse.swt.SWT.error(SWT.java:3563)
...
This didn't happen for Eclipse 3.2.2.
If I add org.eclipse.jdt.junit4.runtime to the Run configuration, it
requires a large number of other plug-ins, but will ultimately run the
test units.
However, it also adds things like a "Search" menu and toolbar icons to the
RCP app and I am now testing a much more extensive application so the test
results may not be valid.
How should I handle this?
Is there a way not to include the org.eclipse.jdt.junit4.runtime?
Thanks
Roger
|
|
|
|
Re: Converting JUnit tests to 3.3 [message #256611 is a reply to message #256607] |
Tue, 23 September 2008 21:43  |
Eclipse User |
|
|
|
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=216946 for more
information. Looks like it was fixed in 3.4.
Best is to add org.eclispe.jdt.junit4.runtime and
org.eclipse.jdt.junit.runtime to your target.
-Will
Will Horn wrote:
> Any solution to this? I am having the same issue.
>
> Thanks,
> Will
>
> Roger Nye wrote:
>> Hi,
>> I am trying to migrate an RCP app to Europa. The app runs OK, but the
>> Unit Tests fail. Using JUnit 4, I get an exception:
>>
>> Exception in thread "WorkbenchTestable" org.eclipse.swt.SWTException:
>> Failed to execute runnable (java.lang.IllegalArgumentException: No
>> Classloader found for plug-in org.eclipse.jdt.junit4.runtime)
>> at org.eclipse.swt.SWT.error(SWT.java:3563)
>> ..
>>
>> This didn't happen for Eclipse 3.2.2.
>>
>> If I add org.eclipse.jdt.junit4.runtime to the Run configuration, it
>> requires a large number of other plug-ins, but will ultimately run the
>> test units.
>>
>> However, it also adds things like a "Search" menu and toolbar icons to
>> the RCP app and I am now testing a much more extensive application so
>> the test results may not be valid.
>>
>> How should I handle this?
>> Is there a way not to include the org.eclipse.jdt.junit4.runtime?
>>
>> Thanks
>> Roger
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03312 seconds