This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Testing and the fly likes How to execute junit test query for a table(User) without actually modifying data in the table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "How to execute junit test query for a table(User) without actually modifying data in the table " Watch "How to execute junit test query for a table(User) without actually modifying data in the table " New topic
Author

How to execute junit test query for a table(User) without actually modifying data in the table

ashley Jug
Ranch Hand

Joined: Sep 02, 2011
Posts: 60
Hello,

I have a question regarding JUNIT TEST:

i have a unit test query in java that modifies data in a table user(name,id) and the sql takes a name and an id as parameter, it modifies the name.however i just want to know if it is possible to run my junit query if modification is successful or not without actually changing the data(name) in the table?

Thanks in advance.
 
 
subject: How to execute junit test query for a table(User) without actually modifying data in the table
 
Similar Threads
JOIN syntax for HQL . Need help!
How to get data from 2 column of table through select
Advice for changing database
Problem in composite key as foreign key mapping w/ hibernate v3.2.6 and jdk-6
Toggling of a table