This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Testing and the fly likes Junit test in Oracle Database function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Junit test in Oracle Database function" Watch "Junit test in Oracle Database function" New topic
Author

Junit test in Oracle Database function

raka oscr
Greenhorn

Joined: Mar 02, 2013
Posts: 25
Hi,




The above mentioned code is my java code to pass the parameters in pl/sql function. I need to test this function using Junit test. How can I test this dynamically using Junit test methodology. I am unaware of Junit test. Can anyone please guide me?

Thanks,
raka
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29287
    
140

I recommend getting a book like "Test Driven" that gives examples of how to use JUnit to test database code. For learning JUnit itself, you can use the online tutorials. Or you could start with the tutorials and test a simpler method first.


[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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Junit test in Oracle Database function
 
Similar Threads
Connection Pooling
java stored procedure problems
doubt in creating connections..
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
Java won't send SQL query