| Use Junit 4.7 with SWTBot [message #492144] |
Mon, 19 October 2009 02:41  |
speedracer Messages: 19 Registered: August 2009 |
Junior Member |
|
|
Hello,
I use SWTBot with eclipse 3.4.2. is there a chance to use the newest version of junit (4.7)?
And if yes, what should I change for that? Should I only include it or must I contribute the swtbot plugins?
|
|
|
|
| Re: Use Junit 4.7 with SWTBot [message #492168 is a reply to message #492144] |
Mon, 19 October 2009 04:57   |
speedracer Messages: 19 Registered: August 2009 |
Junior Member |
|
|
Hello,
thanks,
what is a good way to make this changes.
I hava an idea.
I generate a new plugin from the junit 4.7 jar.
Then I remove all dependencies and import packages of the junit4.3.jar from the swtbot plugins and add the junit 4.7 plugins as dependencie.
After that I build swtbot as a new version and add this to my eclipse installation.
Is that a good way, or not?
[Updated on: Mon, 19 October 2009 04:58] Report message to a moderator
|
|
|
|
|
|
|
| Re: Use Junit 4.7 with SWTBot [message #492331 is a reply to message #492250] |
Mon, 19 October 2009 23:20  |
Ketan Padegaonkar Messages: 873 Registered: July 2009 |
Senior Member |
|
|
On 19/10/09 8:45 PM, speedracer wrote:
> Thanks for the detailed replay.
> But unfortunately, that doesnt function.
> I dont get any compile errors bt when I start the test class as an
> swtbot test, I get the following exception.
>
> Quote:
>> Exception in thread "WorkbenchTestable"
>> java.lang.IllegalArgumentException: No Classloader found for plug-in
>> org.eclipse.jdt.junit4.runtime
That's because the org.eclipse.jdt.junit4.runtime depends on junit4
between the range 4.2-4.4 as such it does not load up because the junit
version is 4.7.
You may need to additionally muck around with the
org.eclipse.jdt.junit4.runtime (possibly other plugins as well) and
change it's manifest (and delete the signatures in META-INF)
I'd recommend filing a bug on jdt and asking them for a workaround (I've
copied the jdt newsgroup)
--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr
|
|
|
Powered by
FUDForum. Page generated in 0.03602 seconds