Bug 1096992

Summary: PowerMock 1.4.x incompatible with EasyMock 3.1
Product: [Fedora] Fedora Reporter: Christopher Tubbs <ctubbsii>
Component: powermockAssignee: Michael Simacek <msimacek>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 20CC: java-sig-commits, jerboaa, msimacek, neugens, rkennke
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.6.2-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-20 14:35:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christopher Tubbs 2014-05-12 22:15:51 UTC
Description of problem:

PowerMockRunner 1.4.12 and some versions of 1.5.x are incompatible with EasyMock 3.2 available in Fedora. PowerMock needs to be updated to version 1.5.4 (preferred) or EasyMock 3.1 needs to be available.

Version-Release number of selected component (if applicable):
1.4.12

How reproducible:
100%

Steps to Reproduce:
1. Run a basic JUnit test with PowerMockRunner, using expectNew

Actual results:
Test fails with the following exception:
org.powermock.reflect.exceptions.FieldNotFoundException: No instance field of type "org.easymock.internal.MocksControl$MockType" could be found in the class hierarchy of org.easymock.internal.MocksControl.

Expected results:
Test succeeds

Additional info:
http://stackoverflow.com/questions/17788926/org-powermock-reflect-exceptions-fieldnotfoundexception-when-using-powermock-exp
http://code.google.com/p/powermock/issues/detail?id=454

Comment 1 Michael Simacek 2015-05-20 14:35:31 UTC
I updated powermock to version 1.6.2 in rawhide. I think it would be impractical to rebase it in stable fedoras as it's a test only dependency of packages. Please reopen the bug if you think otherwise.