Nino Saturnino Martinez Vazquez Wael wrote:
@jdave I think it would be an option(I dont think I can go back to 1.4
ever and hope I dont have to), however I'd like to see more
convenience methods.. Why arent it mentioned on the wiki page or
somewhere else?
@Spring problems
Did not know that.. Thanks :)
@Pretty hard doing stuff with the tester
if I have to compare lists for example, I might have a component that
should show something based on a filter. So to test it I need to get a
list based on the filter in the tester, and compare that to the list.
I think it would be nice to be able to do this directly..
Example :
wicketTester.assertEqualsListViewCompareToListFromLastPage(String id,
List list)
Stuff like that. Might just be me who's stuck, has been known to
happen before..
Also I have not found a method to unselect from checkboxes or
dropdowns, I've tried setting models to null etc but its ugly compared
to the convenice methods for selecting and does not seem to work?
Of course I meant modelObjects above...
Timo Rantalaiho wrote:
On Fri, 16 Nov 2007, Nino Saturnino Martinez Vazquez Wael wrote:
A possible con are that the testing part of wicket could be improved
by having more convenince methods. Also there seems to be some
trouble testing if you use spring injection for your beans.
jdave-wicket has more convenience methods if that's an
option for you.
But what trouble have you run into with Spring beans? We instantiate
a MockApplicationContext and feed it to the
SpringComponentInstantiationListener of the Application
that WicketTester uses, and @SpringBeans just work.
It's "pretty" hard doing stuff with the tester if you go beyond just
selecting things, if you want to verify what the model contains. I
could
Again this sounds strange to me.
You can just get the component you want and ask it, e.g.
wicketTester.getComponentFromLastRenderedPage("name").getModelObject().equals("Frank")
Best wishes,
Timo
--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]