Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Converting JUnit tests to 3.3
Converting JUnit tests to 3.3 [message #245361] Sun, 08 July 2007 08:32 Go to next message
Eclipse UserFriend
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 #256607 is a reply to message #245361] Tue, 23 September 2008 18:11 Go to previous messageGo to next message
Eclipse UserFriend
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
>
Re: Converting JUnit tests to 3.3 [message #256611 is a reply to message #256607] Tue, 23 September 2008 21:43 Go to previous message
Eclipse UserFriend
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
>>
Previous Topic:Modifying the Eclipse Java Compiler/Grammar
Next Topic:How come F3 gives an error
Goto Forum:
  


Current Time: Sat Jul 19 22:42:17 EDT 2025

Powered by FUDForum. Page generated in 0.03312 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top