aspose file tools
The moose likes Testing and the fly likes SQL & JUnit Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "SQL & JUnit" Watch "SQL & JUnit" New topic
Author

SQL & JUnit

sam backet
Greenhorn

Joined: Sep 02, 2011
Posts: 22

Hello,

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

Example:


thanks

sam
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26138
    
  66

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?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Arka Sharma
Ranch Hand

Joined: Jun 15, 2011
Posts: 102
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
 
Similar Threads
HSQLDB - user lacks privilege or object not found
regarding junit
maven doenst see junit ?
Juint task in Ant
Singleton class - unit testing ?