Nino.Martinez wrote:
> 
> I was wondering how I should be testing with wicket. I've created the 
> bbcodecomponent, I have a bbcodeLabel. And I would like to write a test 
> for that. I can see that I can't use the assertLabel as that just gets 
> modelObjectToString, in the bbcodeLabel some formatting are done during 
> onComponentTagBody. Is this completely wrong, how should testing be 
> done? I can see that the dateLabel uses an approach with converters, 
> although im not sure how this are done. But are this more propper?
> 

try something like:

                WicketTester tester = new WicketTester();
                tester.startPage(Home.class);
                tester.assertContains("foo");

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Testing-wicket-1.3-tf4469190.html#a12758401
Sent from the Wicket - User mailing list archive at Nabble.com.

Reply via email to