Using WicketTester with a custom WebSession
Hello I'm fairly new to Wicket so forgive me if the answer is obvious and I've missed something. When I use WicketTester to test my Wicket application it always complains about casting the session, I understand this to be because the WicketTester uses a MockSession. Is there any way I can change the WicketTester to handle my custom session so I can run my unit tests? Regards Jonathan Franklin -- View this message in context: http://www.nabble.com/Using-WicketTester-with-a-custom-WebSession-tf4546811.html#a12974932 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using WicketTester with a custom WebSession
2007/10/1, Jonnie [EMAIL PROTECTED]: Hello I'm fairly new to Wicket so forgive me if the answer is obvious and I've missed something. When I use WicketTester to test my Wicket application it always complains about casting the session, I understand this to be because the WicketTester uses a MockSession. Is there any way I can change the WicketTester to handle my custom session so I can run my unit tests? Do you provide your custom Application to the WicketTester? -- greetings from Berlin, Rüdiger Schulz www.2rue.de
Re: Using WicketTester with a custom WebSession
No I don't provide my custom application to the tester. I've had a look at the API, how do I provide this to the tester? Rüdiger_Schulz wrote: 2007/10/1, Jonnie [EMAIL PROTECTED]: Hello I'm fairly new to Wicket so forgive me if the answer is obvious and I've missed something. When I use WicketTester to test my Wicket application it always complains about casting the session, I understand this to be because the WicketTester uses a MockSession. Is there any way I can change the WicketTester to handle my custom session so I can run my unit tests? Do you provide your custom Application to the WicketTester? -- greetings from Berlin, Rüdiger Schulz www.2rue.de -- View this message in context: http://www.nabble.com/Using-WicketTester-with-a-custom-WebSession-tf4546811.html#a12975600 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using WicketTester with a custom WebSession
At least in 1.3 you can pass it to the constructor. Don't know for 1.2 though. You can try the archive at nabble. 2007/10/1, Jonnie [EMAIL PROTECTED]: No I don't provide my custom application to the tester. I've had a look at the API, how do I provide this to the tester? Rüdiger_Schulz wrote: 2007/10/1, Jonnie [EMAIL PROTECTED]: Hello I'm fairly new to Wicket so forgive me if the answer is obvious and I've missed something. When I use WicketTester to test my Wicket application it always complains about casting the session, I understand this to be because the WicketTester uses a MockSession. Is there any way I can change the WicketTester to handle my custom session so I can run my unit tests? Do you provide your custom Application to the WicketTester? -- greetings from Berlin, Rüdiger Schulz www.2rue.de -- View this message in context: http://www.nabble.com/Using-WicketTester-with-a-custom-WebSession-tf4546811.html#a12975600 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- greetings from Berlin, Rüdiger Schulz www.2rue.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]