Meaningless Drivel is fun!*
The moose likes Testing and the fly likes Mocking of methods called by this Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Mocking of methods called by this " Watch "Mocking of methods called by this " New topic
Author

Mocking of methods called by this

Kasarla Harish Kumar
Greenhorn

Joined: Aug 12, 2012
Posts: 1
Hi,

I am facing problem while mocking a method .here is an example...
public class SampleClass{

public String method1(int a,int b){




}
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4344
    
    8

Hi Kasarla. Welcome to the Ranch!

What is the problem, then? We can't help you without knowing the details. (See TellTheDetails for more).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Mocking of methods called by this
 
Similar Threads
Testing constructor with easymock
How to write JUnit test
Testing a HTTP client
[sexual content]From today's spam: You have nothing to lose but...
How to mock a complicate content