Problems with SWTBot and Spring-Context [message #515811] |
Sun, 21 February 2010 05:25  |
Eclipse User |
|
|
|
Hey,
in our RCP-project we use Spring DM.
For normal Unit-Tests everything works fine, but if we test the GUI with SWTBot there is a problem with the Spring-Context. It seems to me that that the context can't be loaded.
and i don't know where the problem is. If the bot opens Views with no Spring-context in it, everything is allright.
We use the SpringExtensionFactory from Martin Lippert.
Does anybody do tests with SWTBot and Spring?
Greetings,
Stefan
|
|
|
|
Re: Problems with SWTBot and Spring-Context [message #516279 is a reply to message #515811] |
Tue, 23 February 2010 08:39  |
Eclipse User |
|
|
|
Hm, the Buddy-Policy didnt work.
I found a tutorial, where i register a Spring-Bundle, containing all libraries, as a buddy to my SWTBot-Test-Plugin.
That didn't work,too.
My next try was to copy the application-context from my GUI-Bundle to a new application context within my Test-Plugin. But now i
get an Illegal argument exception that noch classloader could be found for the test-plugin.
I forgot to mention that we use the SpringExtensionFactory to inject our dependencies into the views.
The thing i dont understand is, SWTBot starts the product itself. Where is the problem to load the contexts from the product or
even to start the product with with its own product-configuration???
|
|
|
Powered by
FUDForum. Page generated in 0.06653 seconds