I start new project and I want to use TDD methodology. I use tomcat 7 and mysql 5. I wonder how to test connection with DB? Thanks in advance
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Excellent initiative! You should start looking at mock objects and DB mocking. This SO question might help you to get started.
EDIT: In case you are looking for a mocking framework, I suggest EasyMock which is an excellent mocking framework that I have been using for more than 4 years now.