praveen1503 / powermock

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

PrepareForTest javadocs incorrect #411

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. look at the docs @ 
http://powermock.googlecode.com/svn/docs/powermock-1.4.12/apidocs/org/powermock/
core/classloader/annotations/PrepareForTest.html
2. try to write code using the information contained therein regarding 
wildcarded package names:
    You can also prepare whole packages for test by using wildcards:
     @PrepareForTest("com.mypackage.*")

What is the expected output? What do you see instead?
This should be compilable.  It is not.  Error: 
    Type mismatch: cannot convert from String to Class<?>[]

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

Please provide any additional information below.
Perhaps correct usage?:
    @PrepareForTest(fullyQualifiedNames={"com.mypackage.*"})

Original issue reported on code.google.com by brian.he...@gmail.com on 21 Nov 2012 at 9:22

GoogleCodeExporter commented 8 years ago
You're right! Please provide a patch.

Original comment by johan.ha...@gmail.com on 29 Nov 2012 at 6:42