junit « Database « Java Database Q&A





1. JUnit for database code    stackoverflow.com

I've been trying to implement unit testing and currently have some code that does the following:

  1. query external database, loading into a feed table
  2. query a view, which is a delta of my feed ...

2. How do I unit test jdbc code in java?    stackoverflow.com

I'd like to write some unit tests for some code that connects to a database, runs one or more queries, and then processes the results. (Without actually using a database) Another developer here ...

3. JUnit Test a Database Failure?    stackoverflow.com

I'm trying to create a test that simulates a system failure to ensure the integrity of a Oracle Berkeley DB XML database. Data loss is currently being experienced during an insert ...

4. Writing test code for verifying database entries when testing an API    stackoverflow.com

I'm writing test code to test a client-server application. The application under test consists of

  1. an application that runs on Tomcat or another Java EE application server, and
  2. client jars that ...

5. Database cleanup after Junit tests    stackoverflow.com

I have to test some Thrift services using Junit. When I run my tests as a Thrift client, the services modify the server database. I am unable to find a good ...

6. Testing a dataset returned from a database    stackoverflow.com

If I am testing a database rowset, what would be the criteria to test against? Should I test that a row exists with a name of A, etc etc (What's in the ...

7. DB backend webapp testing in java [tool needed]    stackoverflow.com

I want to create a test suit for my java web application. Its a JSP applications with JDBC connectivity . My requirements are as follows, 1 - I should be able to ...

8. Database Unit Testing using JUnit    stackoverflow.com

I have a small experience with JUnit and TestNG, and today I need to do some Unit Testing for Java database code. I really don't know how I can achieve ...

9. JUnit Test case for testing data from database is latest and not stale    stackoverflow.com

I am getting list of data from database from my Service Class Method mDataVO.getMarketData() where mDataVO is an object of marketDataVO which is an value object for storing different types of ...





10. java junit testing in a loop    stackoverflow.com

I have a JUnit test that I would like to run from a main method. I would like to retrieve multiple records from a database (within the main method) and ...

11. How can I unit-test my database content?    stackoverflow.com

We have a case where we are testing a swing application. We have a QA person who up until now was doing manual testing of the app. Now we have realised ...

12. Running JUnit tests against more type of databases    stackoverflow.com

I have an application that uses databases through jdbc API (in fact spring jdbc template). We want to run our unit tests against more type of databases (MS SQL, Oracle, Postgre); ...