test « dao « Java Database Q&A





1. Java: How to do testing for DAO and Services for a module?    stackoverflow.com

First, I'm working as a Java programmer, and my first taks is to test the DAO and Services layers for a module from a project, but I didn't receive so many ...

2. What’s the strategy to recover data during DAO unit test?    stackoverflow.com

When I test DAO module in JUnit, an obvious problem is: how to recover testing data in database? For instance, a record should be deleted in both test methods testA() and testB(), ...

3. Writing tests for DAOs    stackoverflow.com

I'm currently assigned to write a test for a project, is it necessary to write tests for DAO classes?

4. Should integration testing of DAOs be done in an application server?    stackoverflow.com

I have a three tier application under development and am creating integration tests for DAOs in the persistence layer. When the application runs in Websphere or JBoss I expect to ...

5. What is good practice for java agile integration testing DAO -> database?    stackoverflow.com

What is current good practice for agile integration testing of DAOs against a real database schema in the Java landscape? (By 'agile' I mean what is the most streamlined, automated & simple ...

6. Generic test class for a generic DAO class?    stackoverflow.com

I'm trying to test some DAO Classes that inherit from a Generic one, and was wondering if there was a way to write a generic test class that tests the functionality ...