Re: Using the WicketTester WITHOUT rendering a response on submit

2008-05-22 Thread Timo Rantalaiho
On Thu, 22 May 2008, nitinkc wrote: > I am trying to achieve something similar. How did you manage to assign the > TestingWebApplication to your WicketTester?? Thanks! WicketTester wicket = new WicketTester(new TestingWebApplication()); wicket.startComponent/Panel/Page(... Best wishes, Timo --

Re: Using the WicketTester WITHOUT rendering a response on submit

2008-05-22 Thread nitinkc
// verify values set properly in model; > assertModelUpdated(part, barcode, name, description); > > // verify that response page is correct > // this now works -- even though the page isn't really > renderd >

Re: Using the WicketTester WITHOUT rendering a response on submit

2007-11-15 Thread Timo Rantalaiho
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

Re: Using the WicketTester WITHOUT rendering a response on submit

2007-11-15 Thread mclev
r pageY, which failed). 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. Thanks, Matt Clev

Re: Using the WicketTester WITHOUT rendering a response on submit

2007-11-14 Thread Timo Rantalaiho
On Tue, 13 Nov 2007, mclev wrote: > 1. Can I use Guice injection in a way that I can test my forms without the > need for a test database. In the little experimentation I've done, I have found that the most straightforward way with single components without contained guice-depndent components is t

Re: Using the WicketTester WITHOUT rendering a response on submit

2007-11-14 Thread mclev
ge isn't really renderd tester.assertRenderedPage(PartListPage.class); } I'm still new to wicket so if anybody thinks this is this is crazy please let me know. -- View this message in context: http://www.nabble.com/Using-the-WicketTester-WITHO

Using the WicketTester WITHOUT rendering a response on submit

2007-11-13 Thread mclev
(Note: Yeah I know "Hibernate session factory..." yada yada. I haven't yet abstracted this from the List page. However, this is exactly the issue. I don't want to actually "render" this new page (look further down and you will see: at org.apache.wicket.Page.rend