aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "How to Mock" Watch "How to Mock" New topic
Author

How to Mock

Antara pramanick
Greenhorn

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
Bartender

Joined: Feb 26, 2001
Posts: 4419
    
    5

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
 
Similar Threads
howto drop operation name from message for wrapped document style wsdl
jQuery event handlers
Deploy JAXWS (Mustang) WS to Tomcat?
Reading a string in C++ and sending to Java using JNI
How does CMP Bean works