Re: How to unit test AttributeModifier

2013-05-09 Thread Dmitriy Neretin
Thanks to all! It works now! Am 08.05.2013 14:39 schrieb "Kees van Dieren" : > Another option is to use the TagTester: > > TagTester tester = wicketTester.getTagByWicketId("containerId"); > > tester.getAttribute("name"); // returns: "anyDynamicValue" > > > > > Best regards / Met vriendelijke groet

Re: How to unit test AttributeModifier

2013-05-08 Thread Kees van Dieren
Another option is to use the TagTester: TagTester tester = wicketTester.getTagByWicketId("containerId"); tester.getAttribute("name"); // returns: "anyDynamicValue" Best regards / Met vriendelijke groet, Kees van Dieren Squins IT Solutions BV Oranjestraat 30 2983 HS Ridderkerk The Netherlands

Re: How to unit test AttributeModifier

2013-05-07 Thread Martin Grigorov
Also check AttributeModifierTest in wicket-core/src/test/java/.. On Tue, May 7, 2013 at 5:31 PM, Igor Vaynberg wrote: > attribute modifiers are behaviors, so use > component.getbehavior(AttributeModifier.class) to get it. > > -igor > > On Tue, May 7, 2013 at 8:24 AM, Dmitriy Neretin > wrote: >

Re: How to unit test AttributeModifier

2013-05-07 Thread Igor Vaynberg
attribute modifiers are behaviors, so use component.getbehavior(AttributeModifier.class) to get it. -igor On Tue, May 7, 2013 at 8:24 AM, Dmitriy Neretin wrote: > Hello, > > Is it possible to unit test an AttributeModifier? > > I have a simple component: > > WebMarkupContainer container = new We

How to unit test AttributeModifier

2013-05-07 Thread Dmitriy Neretin
Hello, Is it possible to unit test an AttributeModifier? I have a simple component: WebMarkupContainer container = new WebMarkupContainer("containerId"); container.add(new AttributeModifier("name", "anyDynamicValue")); In the unit test: WebMarkupContainer container = (WebMarkupContainer) teste