Hi All,
I have stateless session bean. In this bean I have method GetOrderData(int orderid) which uses DAO and queries database . I have to unit test this method. So how can i do that ?
How can i Mock DAO and result set returned by DAO ?
I am able to get the EJB but after that I dont know how to mock dao and resultset.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
I have stateless session bean. In this bean I have method GetOrderData(int orderid) which uses DAO and queries database . I have to unit test this method. So how can i do that ?
How can i Mock DAO and result set returned by DAO ?
I am able to get the EJB but after that I dont know how to mock dao and resultset.