Johan Haleby
unread,Dec 4, 2012, 7:07:45 AM12/4/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PowerMock
PowerMock 1.5 has finally been released with better support for Java 7
and Mockito 1.9.5.
Big thanks to everyone for helping out, especially to those who have
helped out testing the Java 7 support and to Shigeru Chiba for the
updated Javassist version.
Changes are:
* Added var-args to mockStatic in the PowerMockito API. You can now
do:
mockStatic(A.class, B.class, C.class);
* Suppression is now working for overridden methods (issue 364, 51).
Thanks to hpbeem for the patch.
* PowerMock junit module now supports JUnit rules for version 4.9+
(issue 344). Thanks to Andreas Kutschera for the patch.
* Fixed is with PowerMock JUnit runner that failed to parse JUnit
versions including characters such as 4.9b2. (issue 381).
* Mockito extension API now uses Mockito 1.9.5 (issue 398)
* Updated TestNG dependency to version 6.8
* Added support for easily mocking all constructors of a class in the
Mockito extension API. For example:
whenNew(X.class).withAnyArguments().thenReturn(xMock); (issue 405).
* Upgraded to Javassist 3.17.1-GA, this means that PowerMock works in
Java 7!
The release should be available in Maven central soon.
Enjoy!