Hey everyone,

 

I just finished creating tests in rc2, but after upgrading to wicket 1.2-final the tests now fail.

 

>>>>>>>> AppTester.java >>>>>>>>

public class AppTester extends WicketTester {

public AppTester() {

            super("/admin");

}

public void init() {

            configure(DEVELOPMENT);

}

@Override

public Class getHomePage() {

            return ListPage.class;

}

}

>>>>>TestList.java >>>>>>>
tester = new AppTester();

tester.startPage(new ListPage());

 

And this returns the error:

wicket.WicketRuntimeException: Can not set the attribute. No RequestCycle available

            at wicket.Session.setAttribute(Session.java:918)

            at wicket.PageMap.put(PageMap.java:519)

            at wicket.Session.touch(Session.java:720)

            at wicket.util.tester.WicketTester.startPage(WicketTester.java:248)

 

 

Is this because the tester is broken, or am I doing something wrong?

 

 - michiel

 

 

Michiel Trimpe| Java Developer| TomTom | [EMAIL PROTECTED] | +31 (0)6 41482341mobile

 


This e-mail message contains information which is confidential and may be privileged. It is intended for use by the addressee only. If you are not the intended addressee, we request that you notify the sender immediately and delete or destroy this e-mail message and any attachment(s), without copying, saving, forwarding, disclosing or using its contents in any other way. TomTom N.V., TomTom International BV or any other company belonging to the TomTom group of companies will not be liable for damage relating to the communication by e-mail of data, documents or any other information.

Reply via email to