Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By jashburn

Thread: Database junit testing

  1. #1
    mishy is offline Member
    Join Date
    Feb 2014
    Posts
    8
    Rep Power
    0

    Default Database junit testing

    I have been designing a music collection application that runs from a database. I now need to develop a junit test to test the application but I am not sure if Junit has anything to help with testing databases. I have been googling on the internet but most of the search results do not really give any good examples that I can easily follow and adapt to my application. I am using only one table and I would like to test INSERT, UPDATE and DELETE actions and I would also like to test a successful connection.

    I once found one tutorial which I cannot find any more that had something that retrieves all the data in the database and stores it in a CSV file and the loops through the CSV file to check or update information.

    Any pointers or help on junit database testing is appreciated

  2. #2
    jashburn is offline Senior Member
    Join Date
    Feb 2014
    Posts
    219
    Rep Power
    1

    Default Re: Database junit testing

    You should be able to find relevant information using the search term "junit database." E.g., DbUnit might fit the bill. See also Unit Testing Database Code.
    mishy likes this.

  3. #3
    mishy is offline Member
    Join Date
    Feb 2014
    Posts
    8
    Rep Power
    0

    Default Re: Database junit testing

    Thank you for the response, I will look at the link you have provided as well as look at DbUnit.

Similar Threads

  1. junit exception testing
    By NoobieCode in forum New To Java
    Replies: 3
    Last Post: 10-10-2013, 11:06 AM
  2. Junit testing, testing list<e> interface
    By mackavelirip in forum New To Java
    Replies: 0
    Last Post: 10-05-2011, 07:08 AM
  3. JUnit testing
    By hedonist in forum Advanced Java
    Replies: 4
    Last Post: 10-04-2009, 01:06 PM
  4. Testing tools (Profiling and JUnit)
    By ericpinet in forum Eclipse
    Replies: 1
    Last Post: 04-21-2009, 11:23 PM
  5. Testing JUnit PDE with Ant
    By keynan in forum Eclipse
    Replies: 0
    Last Post: 02-15-2008, 12:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •