[Logo]
Forums Register Login
Writing test case without database operations
How to write test case for classes that calls database operations using entity beans and data of test case should be read from or write into some xml file?
How to use mock objects here?
The application is J2EE based uses EJBs and back end as db2.
Any examples available?

Thanks
Deepa
Are these BMP or CMP entity beans?
 

Originally posted by Deepa More:
data of test case should be read from or write into some xml file?


Regarding reading the data... If you're using JUnit 3.8, see here for an example of how to write data-driven test cases. If you're using JUnit 4.x, see this instead.

I'm not sure, though, what would you like to write into the XML file?
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards


This thread has been viewed 1017 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jan 21, 2018 08:02:28.