Am 19.08.2011 15:35, schrieb Mathilde Pellerin:
Thank you for your answer Mike.

I didn't find out how could I try with Radio.onComponentTag, so I tried with
tagTester.

I think it could be a good solution, so I did that :
         TagTester tagFemme =
tester.getTagByWicketId("formCreationQuestionnaire:genre:femme");
         TagTester tagHomme =
tester.getTagByWicketId("formCreationQuestionnaire:genre:homme");
         TagTester tagMixte =
tester.getTagByWicketId("formCreationQuestionnaire:genre:mixte");
         Assert.assertNotNull(tagFemme);
         Assert.assertTrue(tagFemme.hasAttribute("checked"));
         Assert.assertFalse(tagHomme.hasAttribute("checked"));
         Assert.assertFalse(tagMixte.hasAttribute("checked"));

but my tagTester are always null ! I checked path many times, and I tried
other way to instantiate tagTester, but without success.
I already used TagTester in other test before without problem, and I really
don't understand why it is always null here...

Can you provide output from WicketTester.debugComponentTree()?

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to