Thanks a lot, I use now snapshop #69.
Andrea
2008/6/30, Maurice Marrink <[EMAIL PROTECTED]>:
>
> Apparently the junit tests in wicket 1.3.4 trigger a call to destroy
> twice. Since i am setting several fields to null this causes the
> second destroy to fail.
> As a quick fix i have put some null
Apparently the junit tests in wicket 1.3.4 trigger a call to destroy
twice. Since i am setting several fields to null this causes the
second destroy to fail.
As a quick fix i have put some nullchecks in the code. A new snapshot
should be available shortly (see
http://wicketstuff.org/teamcity/overvi
Hi,
I was using Wicket 1.3.3 and tester.destroy() worked fine.
But I had to change to Wicket 1.3.4 (because of WICKET-1558) and now I get
the
following Exception when tester.destroy() is called:
java.lang.NullPointerException
at
org.apache.wicket.security.swarm.actions.SwarmActionFactory.destro
In the teardown do tester.destroy() this will clean up everything.
Maurice
On Fri, Jun 20, 2008 at 10:16 AM, Andrea Jahn
<[EMAIL PROTECTED]> wrote:
> Hi,
> Thank you very much for the Java solution :) !
> I have also corrected the place to return a new custom session :).
>
> Now the first test ca
Hi,
Thank you very much for the Java solution :) !
I have also corrected the place to return a new custom session :).
Now the first test case runs without problems,
but in the second and third test case I get the following exception:
java.lang.IllegalArgumentException: Another ActionFactory is al
Sorry never done much with spring, but according to this
http://cwiki.apache.org/WICKET/spring.html#Spring-UnitTestingtheProxyApproach
you were on the right track.
So if you do your spring config in a protected method which is called
by your application.init. you can override that method in your ju
My initial problem was, that I have different application contexts in the
test environment
and in the Web application and therefore different calls of
addComponentInstantiationListener.
In my test environment I have a ApplicationContextMock, which I have to add
as second parameter:
addComponentIns
In the above code you are showing 2 different codes for MyApplication,
both override the init method. one of them calls super.init the other
does not. your init should look like this:
protected void init() {
super.init();
addComponentInstantiationListener(new SpringComponentInjector(t
Hi,
Sorry, if this is a stupid Java question:
But how can I call SwarmWebApplication.init() without calling
MyApplication.init() ?
Thanks
Andrea
public class MyWicketTester extends WicketTester
{
public MyWicketTester(final ApplicationContextMock appctx)
{
super(new MyApplication() {
You need to call super.init(). that will fix your swarm problems. as
for spring i think you need:
addComponentInstantiationListener(new SpringComponentInjector(this));
InjectorHolder.getInjector().inject(this);
Maurice
On Wed, Jun 18, 2008 at 10:23 AM, Andrea Jahn
<[EMAIL PROTECTED]> wrote:
> H
Hi,
after the integration of the Wasp/Swarm framework (only basic functionality
at the moment) I have to adapt the wicket JUnit tests.
But I have the following problems:
public class LoginTest
{
private WicketTester tester;
private FormTester form;
private PersonService personServiceMock;
11 matches
Mail list logo