Skip to content

Releases: powermock/powermock

PowerMock 2.0.0 beta 1

10 Sep 10:23
Compare
Choose a tag to compare
Pre-release

2.0.0-beta.1 (2017-09-10) - 35 commits by Arthur Zagretdinov (32), Wojtek Wilk (2), PowerMock Release Tools (1) - published to Bintray

[Major changes] Mockito Public API Support Roadmap (#726)
[Enhancements] Removed deprecated code in PowerMock 2.0. (#839)
[Enhancements] Use Mockito Shipkit for CD (#826)

Incapability with PowerMock 1.x:

  • Possible incapability due toString methods returns by default name of mocked.
  • Fully drop supporting of Mockito 1.x
  • Removed deprecated PowerMockito verifyStatic(). It is replaced by verifyStatic(Class)
    mockStatic does not reset mocking process anymore. As result you may get the UnfinishedVerificationException or UnfinishedStubbingException
  • Remove deprecated API: Supporting jUnit 3
  • Remove deprecated annotation 'org.powermock.core.classloader.annotations.Mock'

Other changes:

  • Removed all Mockito copy-pasted code
  • Use delegate MockMaker to prevent issue with replacing Mockito MockMaker when PowerMock in class path (see #769, mockito/mockito#1004)
  • Replace using Mockito internal classes with Mockito public API, except annotation processing (#838).

PowerMock Release 1.7.1

12 Aug 16:02
Compare
Choose a tag to compare

Major changes

  • The release contains one, but significant change: the old API for verifying static mock has been deprecated and a new one has been added. Old API will be removed in version PowerMock 2.0 due to incompatibility with Mockito Public API (#832)

PowerMock Release 1.7.0

16 Jun 07:32
Compare
Choose a tag to compare

Majority changes

  • Added support for non beta versions of Mockito 2. Thanks to everyone that helped out and provided pull requests.
  • Added ability to set global @PowerMockIgnore.

Improvements

  • Implement #793 PowerMockMaker for Mockito 2: A new version of PowerMockMaker implemented. It does not conflict with Mockito MockMaker any more.
  • Added supporting Mockito 2.x (thanks to Gregor Stamac @gstamac for pull request)
  • Added supporting global ignore via configuration (issue # #801)
  • Added supporting org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker via PowerMock configuration (issues #793, #774)

Bug fixes

  • Fixed issue #722 IllegalArgumentException is output to standard error (thanks to Kotaro Nanri @k-nanri for pull request)
  • Fixed issue #717 Regression: MethodNotFoundException
  • Fixed issue #731 No methods matching the name(s) get were found in the class hierarchy for interfaces
  • Fixed issue #753 fix to upgrade code to be compatible with later versions of Mockito (thanks to emmaLP @emmaLP for pull request)
  • Fixed issue #763 whenNew not matching constructor when null is passed as first or last argument. (thanks to @podarsmarty podarsmarty for pull request)
  • Fixed issue #781 Call mocked equals static method instead of real (thanks to @Ilya-Gh Ilya Ghirici for pull request)
  • Fixed issue #772: PowerMockIgnorePackagesExtractorImpl should visit interfaces. (thanks to François Jacques @hypnoce for pull request)
  • Fixed issue with javax.xml and org.w3c. Previously when PowerMock was used with class which works with XML adding @PowerMockIgnore({"org.w3c.*", "javax.xml.*"}) was required. See example

Other changes:

  • Optimizations in powermock-reflect (thanks to Roman Leventov @leventov for pull request) (#724)
  • Migrated from Maven to Gradle (#728)
  • Fix for #701 partially does not work any more, because ByteBuddy implementation of MockMaker always intercept calls to equals and return true only in case if passed object is the same instance of mocked object.

PowerMock v1.7.0RC4

05 Mar 16:12
Compare
Choose a tag to compare
PowerMock v1.7.0RC4 Pre-release
Pre-release

Bug fixes

  • Fix issue #753 fix to upgrade code to be compatible with later versions of Mockito (thanks to emmaLP @emmaLP for pull request)

PowerMock v1.7.0RC2

28 Jan 18:07
Compare
Choose a tag to compare
PowerMock v1.7.0RC2 Pre-release
Pre-release

Majority changes

Release includes two majority changes:

  • Support Mockito 2.4.0 for PowerMock 1.x (thanks to Gregor Stamac @gstamac for pull request)
  • Migrate from Maven to Gradle (#728)

Bug fixes

  • Fix issue #722 IllegalArgumentException is output to standard error (thanks to Kotaro Nanri @k-nanri for pull request)
  • Fix issue #717 Regression: MethodNotFoundException
  • Fix issue #731 No methods matching the name(s) get were found in the class hierarchy for interfaces

Other changes:

  • Optimizations in powermock-reflect (thanks to Roman Leventov @leventov for pull request) (#724)

PowerMock 1.6.6

25 Jan 18:21
Compare
Choose a tag to compare

Highlights

  • PowerMock can work with JaCoCo offline instrumenting to get code coverage.
  • Jacoco offline instrumentation incompatibility with powermock byte-code manipulation when using @SuppressStaticInitializationFor (issue 645)
  • Fixed "TooManyActualInvocations when class is prepared for test" (issue 656)
  • Fixed ClassNotFoundException when loading cglib enhanced classes created by Spring (issue 695)
  • @Mock fields are now injectable again (1.6.5 regression) (issue 668)
  • Using Powermock with Roo/AspectJ no longer throws NullPointerException (issue 676)
  • Added support for specifying constructor parameters for Mockito for whenNew (Only mock specific calls to new)
  • Added support for setting private static final fields (thanks to Andrei Petcu @andreicristianpetcu for pull request)

Other changes

See change log for more details