On 19/10/09 12:11 PM, speedracer wrote:
> 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?
On 19/10/09 2:27 PM, speedracer wrote:
> 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
> Is that a good way, or not?
1. Download eclipse 3.5
2. copy the org.junit4 plugin from eclipse 3.5 to eclipse 3.4
3. download swtbot for eclipse 3.5
4. copy the org.eclipse.swtbot.junit4_x because it works with junit>=4.3.
On 19/10/09 6:14 PM, speedracer wrote:
>> You could try dropping in the junit 4.5 bundle from eclipse 3.5 and
>> picking up the eclipse 3.5 version of swtbot) and see how far you can go.
> Hello Ketan,
> can you explain me that.
> Dit you mean, I should use the eclipse 3.5 version of the plugin
> org.eclipse.swtbot.junit4_x with the junit 4.5 libary? or have I
> misunderstood you?
I dont get any compile errors bt when I start the test class as an swtbot test, I get the following exception.
Exception in thread "WorkbenchTestable" java.lang.IllegalArgumentException: No Classloader found for plug-in org.eclipse.jdt.junit4.runtime
at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.getCl assLoader(RemotePluginTestRunner.java:79)
at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.readP luginArgs(RemotePluginTestRunner.java:94)
at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.init( RemotePluginTestRunner.java:84)
at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.main( RemotePluginTestRunner.java:63)
at org.eclipse.swtbot.eclipse.core.UITestApplication.runTests(U ITestApplication.java:117)
at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work benchTestable.java:68)
at java.lang.Thread.run(Unknown Source)
But a normal Jnit Test for a single class does function
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.
>> Exception in thread "WorkbenchTestable"
>> java.lang.IllegalArgumentException: No Classloader found for plug-in
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)