Solved

Jmock

Posted on 2013-12-19
1
204 Views
Last Modified: 2013-12-25
Hello,

I have a question.................

Is it Jmock is used on the select statement of database, not on other  statement with the database such as insert, update or delete operation...

Thanks
0
Comment
Question by:roy_sanu
1 Comment
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
ID: 39730772
JMock has no relationship to database query types at all. JMock is used to "mock out" any collaborators of a class under test, ie. if you are testing a "service layer" class they will generally use some sort of DAO class to do their work, so JMock is used to replace the real DAO class with a mock. This mock is then used to ensure that the service class calls the DAO/mock in the correct way, with the correct parameters and also it is used to return required test data back to the service class so it can operate under the conditions of the test.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now