jQuery in Action, 3rd edition
The moose likes Testing and the fly likes How to Mock Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "How to Mock" Watch "How to Mock" New topic

How to Mock

Antara pramanick

Joined: Jul 01, 2013
Posts: 1

Hello , I am new to coderanch . I want some step by step guidance to use PowerMockito to mock objects and to mock calls to the database which are in a code. I will elaborate with code I have

Suppose there is a handler class :
which makes a call to the db to get a status and than update the database with changes made in the status.I need to test this handler using mockito.

Thank you in advance .

Please try and help me out on this .Breaking my head on this past 2 weeks

Junilu Lacar

Joined: Feb 26, 2001
Posts: 6529

What have you tried that didn't work?

Junilu - [How to Ask Questions] [How to Answer Questions]
I agree. Here's the link: http://aspose.com/file-tools
subject: How to Mock
It's not a secret anymore!