Hi, There is a bug. Please file a ticket with a simple quickstart. Thanks!
On Wed, Apr 18, 2012 at 12:55 AM, carsten behring <carsten.behr...@gmail.com> wrote: > Dear all, > > This following test : > > @Test > public void test() throws Exception { > WicketTester tester=new WicketTester(); > tester.startComponentInPage(new Label("lableId", "content") { > @Override > protected void onComponentTag(ComponentTag tag) { > super.onComponentTag(tag); > tag.put("test","123"); > } > }); > tester.assertResultPage("icket:id=\"lableId\" test=\"123\">content"); > assertEquals("icket:id=\"lableId\" test=\"123 > \">content",tester.getLastResponseAsString()); > assertEquals("",tester.getResponse().getDocument()); > } > > > > > > expose IMHO a very strange result. As you can see, the page content > returned by getPastResponseAsString() is > "icket:id=\"lableId\" test=\"123\">content" , so somehow cut in the > middle. > > I want to use a similar test, testing a extension of Label. > > Do I do something wrong by starting a component (without explicit page) > like > > tester.startComponentInPage(new Label("lableId", "content"): > > > Thanks for any help, > > Carsten -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org