ahmaddarawshi / powermock

Automatically exported from code.google.com/p/powermock
0 stars 0 forks source link

expectPrivate invoking the actual private method rather than mocking it #116

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If  i test a public method that contains some private methods in it, then 
when i try to mock the private methods using expectPrivate, the private
method gets invoked rather than mocking it.
What is the expected output? What do you see instead?
on mocking should not go to the method that is mocked but simualate it.

What version of the product are you using? On what operating system?
1.2.6

Please provide any additional information below.

Original issue reported on code.google.com by rani....@gmail.com on 11 Jun 2009 at 10:32

GoogleCodeExporter commented 9 years ago
I think you've either forgot to prepare the class for test or forgot to create a
mock. There are numerous examples in the SVN. Please register and use the
mailing-list (powermock@googlegroups.com) so that we can continue to discussion 
there.

Original comment by johan.ha...@gmail.com on 11 Jun 2009 at 10:41

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 2 Jul 2009 at 1:34