I think you could benefit from the tagtester here right?
regards Nino Ned Collyer wrote:
What I've done is.. but feels like it could be nicer. (but this is alright really :)) public void testMyBehavior() { //create form component to have behaviour placed around it. FormComponent component = new TextField("testId", new Model("testFieldValue")); component.error("An error"); XmlTag xmlTag = new XmlTag(); xmlTag.setName("test");ComponentTag tag = new ComponentTag(xmlTag);MyBehavior behavior = new MyBehavior(); behavior.onComponentTag(component, tag); assert(tag.someproperty stuff to test). } The thing that was confusing me thus far, was "wicketTester.startComponent". Seems like I'm better off not using it.
-- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
