Re: [Wicket-user] WicketTester and BookmarkablePageLink

2005-11-23 Thread Juergen Donnerstag
sorry, but I do not understand the question. What is the bug? Juergen On 11/23/05, Eduardo Rocha [EMAIL PROTECTED] wrote: I am having problems with WicketTester.clickLink(..) when the link is a BookmarkablePageLink. At first, if the link is a bookmarkable one, I don't need to test it, since

Re: [Wicket-user] WicketTester and BookmarkablePageLink

2005-11-23 Thread Eelco Hillenius
Because bookmarkable page links do not 'post back' to the server but instead they refer to bookmarkable pages they can't be called as links from WicketTester, right? Eelco On 11/23/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: sorry, but I do not understand the question. What is the bug?

Re: [Wicket-user] WicketTester and BookmarkablePageLink

2005-11-23 Thread Eduardo Rocha
Sorry for not being clearer. The bug is that the following does not work: code (HomePage.class): add(new BookmarkablePageLink(myPageLink, MyPage.class)); test (HomePageTest.class): tester.clickLink(myPageLink); assertRenderedPage(MyPage.class); The assertion fails, because the

Re: [Wicket-user] WicketTester and BookmarkablePageLink

2005-11-23 Thread Ingram Chen
I did some debugging and found that setRequestToComponent() of MockHttpServletRequestdoes not build request parameters for BookmarkablePageLink. It builds interface=ILinkListenerinstead. however, BookmarkablePageLink does nonthing in onLinkClicked() method. I think that we can add

Re: [Wicket-user] WicketTester and BookmarkablePageLink

2005-11-23 Thread Juergen Donnerstag
To make all type of Links working consistently IMO is a good idea. Hence I agree that it is a bug (or RFE) and I would very much appreciate if you would provide a patch for it. Juergen On 11/23/05, Eduardo Rocha [EMAIL PROTECTED] wrote: Sorry for not being clearer. The bug is that the following

Re: [Wicket-user] WicketTester and BookmarkablePageLink

2005-11-23 Thread Eduardo Rocha
I was trying to use Link.getURL(), to not repeat the creation of the parameters on WicketTester, but this method is protected, so I have no idea to move on :( The idea was simply take that URL, parse parameters and add them to MockHttpServletRequest. Supose people agree on making getURL() public,

Re: [Wicket-user] WicketTester and BookmarkablePageLink

2005-11-23 Thread Juergen Donnerstag
yes, WebResponse and WebRequest. Please see the subclasses already available What about the bug/idea reported by Ingram? Juergen On 11/23/05, Eduardo Rocha [EMAIL PROTECTED] wrote: I was trying to use Link.getURL(), to not repeat the creation of the parameters on WicketTester, but this method

Re: [Wicket-user] WicketTester and BookmarkablePageLink

2005-11-23 Thread Eduardo Rocha
Currently it is not possible to retrieve the pageClass from a BookmarkablePageLink, so it is not possible to write bookmarkablePage=xxx. Besides that, I think we would be rewriting code. 2005/11/23, Juergen Donnerstag [EMAIL PROTECTED]: yes, WebResponse and WebRequest. Please see the subclasses