This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Mocking of methods called by this " Watch "Mocking of methods called by this " New topic

Mocking of methods called by this

Kasarla Harish Kumar

Joined: Aug 12, 2012
Posts: 1

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

public String method1(int a,int b){

Matthew Brown

Joined: Apr 06, 2010
Posts: 4544

Hi Kasarla. Welcome to the Ranch!

What is the problem, then? We can't help you without knowing the details. (See TellTheDetails for more).
I agree. Here's the link:
subject: Mocking of methods called by this
It's not a secret anymore!