PowerMock 1.5 has been released

59 views
Skip to first unread message

Johan Haleby

unread,
Dec 4, 2012, 7:07:45 AM12/4/12
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!

Johan Haleby

unread,
Dec 24, 2012, 4:05:40 AM12/24/12
to powe...@googlegroups.com
See the getting started guide on the PowerMock website.

On Mon, Dec 24, 2012 at 8:26 AM, <kewenwa...@gmail.com> wrote:
how can I get it from http://mvnrepository.com

--
You received this message because you are subscribed to the Google Groups "PowerMock" group.
To view this discussion on the web visit https://groups.google.com/d/msg/powermock/-/vVCEpY7YNX8J.

To post to this group, send email to powe...@googlegroups.com.
To unsubscribe from this group, send email to powermock+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/powermock?hl=en.

Reply all
Reply to author
Forward
0 new messages