Dmitriy, Dmitriy...:)

Never ever call getObject() on your LoadableDetachable Model in the
Constructor of your Component (I taught you better!!:)).

Should be:
new DropDownChoice("aWicketId", yourModel,new ChoicesModel(),
myOwnChoicesRenderer) 

Mind the second Parameter, as this is your Model that gets Populated on
Selection, try this.

You should further check whether you service has been called
Mockito.verify(myService).getChoicesList()





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Empy-choices-durring-unit-tests-with-DropDownChoice-tp4659540p4659583.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to