Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

Jmock

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
roy_sanu
Asked:
roy_sanu
1 Solution
 
mccarlIT Business Systems Analyst / Software DeveloperCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now