I guess saying "I don't care about page B" is a little harsh.  I care that
when the link is clicked that the next page to be rendered is page B, what I
don't care about is that page B was actually rendered.

So I don't think mocking up the page is the proper solution.  Instead I
would want to mock up an internal component in wicket that skips the
rendering of that page.  It is been a while since I looked at the guts of
wicket but I'm sure there is a way to do this, the question would be how
much of the testing functionality have you bypassed by doing something like
this.  Maybe instead of testing that the last rendered page was page B, you
have method that say something like "nextPageToBeRendered".

Thoughts?

-Craig


Eelco Hillenius wrote:
> 
>> The problem here is that fact that I'm only testing page A, I don't care
>> about the functionality of page B nor which services it might call.  So
>> is
>> there a better way?  Is there a way that you can mock the rendering of
>> page
>> B?  Has anyone else ran into this issue and  or questioned it, or has
>> someone came up with a solution?
> 
> If you don't care about page B, why not soft code the link and just
> test that it executes? For testing you let the link point to some mock
> page. Would that help?
> 
> Eelco
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/WicketTester-and-mocking-up-next-page-rendered.-tf4093923.html#a11649927
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to