nkxiaochuan / powermock

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

EasyMock; @org.powermock.api.easymock.annotation.Mock not working #459

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use @org.powermock.api.easymock.annotation.Mock to annotate a field in a test

What is the expected output? What do you see instead?
I expect the field to contain a mocked object, but it is instead null.

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

Please provide any additional information below.
When stepping through the code, I see that the annotation for 
org.powermock.api.easymock.annotation.Mock is not included in 
org.powermock.api.extension.listener.AnnotationEnabler.getMockAnnotations() 
list of annotations to look for.  It only includes the deprecated annotation 
org.powermock.core.classloader.annotations.Mock.

Original issue reported on code.google.com by thad.cr...@gmail.com on 13 Sep 2013 at 3:44