When you say do any work myself, do you mean to the WicketTester class?  I
simply want to specify a URL and then use wicket to render the proper page,
it's a trivial test of something basic... but I was wondering if there was a
way to do it in the mock servlet.

Thanks again!


igor.vaynberg wrote:
> 
> without doing any work yourself the closest you can come is
> wickettester#startpage(class, pageparameters)
> 
> -igor
> 
> On Thu, Dec 18, 2008 at 8:09 AM, walnutmon <[email protected]>
> wrote:
>>
>> bump.
>>
>>
>> walnutmon wrote:
>>>
>>> One thing I am trying to implement in my most recent wicket application
>>> is
>>> a hook in from another site written in JSP.   I'm starting simple, with
>>> a
>>> hand-off URL that gives a few peices of information that allows the user
>>> to be logged into the wicket app based on crednetials that had them
>>> logged
>>> into the jsp app.
>>>
>>> I want to write test cases like follows.
>>>
>>> @Test
>>> public void testLogInUrl()
>>> {
>>>    String loginURL =
>>> "http://somplace.com/wicket/login/?stuff=otherstuff";;
>>>    goToUrl(loginUrl);
>>>    assertRenderedPage(UserPage.class);
>>>    assertLabel("name", someGuysName);
>>> }
>>>
>>> Anyone have any idea how to approach this?
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Wicket%3A-Testing-Request-URLs-tp21035024p21075048.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket%3A-Testing-Request-URLs-tp21035024p21313205.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to