Wow, that helped... thanks a lot!
Just another question. I now have to use this id to get a database request.
I just realised that even that needs to be mocked as well, using a similar
method.
Assuming the db call function to be mocked is makeDBcall(int userid){
}
How do I mock this to return a DTO that contains the userRecord (The actual
DB call returns a DTO object that contains the user record fields)?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-mock-Session-using-Mockito-for-a-Wicket-application-tp4657817p4657819.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]