wood burning stoves
The moose likes Testing and the fly likes SQL & JUnit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "SQL & JUnit" Watch "SQL & JUnit" New topic

SQL & JUnit

sam backet

Joined: Sep 02, 2011
Posts: 22


I have a Java-Code with SQL-Statements. I want to test it with Junit...How can I do it..



Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33134

I don't understand the question. Are you asking how to write an assertion that connects to the database, gets a value and asserts against it?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Arka Sharma
Ranch Hand

Joined: Jun 15, 2011
Posts: 103
Can you please tell what your are methods doing which you want to test for ?
I agree. Here's the link: http://aspose.com/file-tools
subject: SQL & JUnit
It's not a secret anymore!