Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • 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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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