0

Team,

I want to moclbelow method using Powermock private void methodToMock(int param1,String param2,int param3) { }

I tried below which is not working SampleClass spyObject = PowerMockito.spy(new SampleClass()); PowerMockito.doNothing().when(spyObject,"methodToMock", anyInt(),anyString(),anyInt());

anuja
  • 1

1 Answers1

0

I had similar issue and solved by passing a variable instead of any().

Dharman
  • 30,962
  • 25
  • 85
  • 135
Developer
  • 33
  • 6