On Thu, 15 Nov 2007, mclev wrote:
> I don't know how to do this when my fields are private:

With reflection. Just remember to call Field.setAccessible(true).

>       private PartDAO partDao;   

By the way, according to naming conventions of Sun it should
be PartDao :)

> Timo -- I would like to know what you think of my solution -- again see 
> http://www.nabble.com/forum/ViewPost.jtp?post=13757593&framed=y my second
> post , where I overrode the RequestCycleProcessor to allow a test to suspend
> response processing.

It's intreresting and quite small and elegant when compared
to some hoops I've hopped through when testing Wicket apps :)
To me it seems like a useful addition to the Wicket testing
toolbox, maybe the core developers would know if it is in
danger of breaking with updates. 

Best wishes,
Timo


-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to