Thoppan / powermock

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

Update Wiki examples #334

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Have the "import" statements in your code.
2.  Or put the class in front of the action (i.e. PowerMock.replay(...))
3.  Or both #1 & #2

Please provide any additional information below.

I am new to PowerMock and thought the documentation was pretty good on it.  But 
when I went to use it my code wouldn't function correctly.  Because both 
PowerMock and EasyMock share some of the same names it is hard to discern when 
you are using what with these static methods.  

An example page is:  http://code.google.com/p/powermock/wiki/MockStatic

An "expect" from EasyMock is used, but the "replay"/"verify" are done through 
PowerMock.  Thanks

Original issue reported on code.google.com by Flavou...@gmail.com on 28 Jun 2011 at 1:28

GoogleCodeExporter commented 9 years ago
This might be able to be discarded.  Did not look at the quick summary: that it 
references which is being used (i.e. PowerMock.replay).  It would be nice if it 
was in both the summary and the code though?

Original comment by Flavou...@gmail.com on 28 Jun 2011 at 7:10

GoogleCodeExporter commented 9 years ago
Yeah maybe it's a bit confusing. Perhaps you could help out? I think all the 
wiki pages are checked into subversion. Then it would be possible to create a 
patch.

Original comment by johan.ha...@gmail.com on 21 Aug 2011 at 9:35