Willam2004 / powermock

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

JavaDoc of org.powermock.api.mockito.PowerMockito.verifyNew(Class<T>) is a little incomplete/unprecise #462

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Look at the Javadoc of 
org.powermock.api.mockito.PowerMockito.verifyNew(Class<T>).

What is the expected output? What do you see instead?
Actual: ... verifyNew(ClassWithStaticMethod.class); ...
Expected: ... e.g. verifyNew(ClassWithStaticMethod.class).withNoArguments(); ...
The expected output would then be in line with the documentation in 
http://code.google.com/p/powermock/wiki/MockitoUsage13.
The actual output is in my opinion incomplete and by that a little bit 
confusing.

What version of the product are you using? On what operating system?
Official 1.5.1 Release and the latest source 
http://powermock.googlecode.com/svn/trunk/

Thank you!

Regards,

Björn

Original issue reported on code.google.com by bjoern.t...@gmx.de on 28 Sep 2013 at 1:51