powermock

PowerMock is a Java framework that allows you to unit test code normally regarded as untestable.

APACHE-2.0 License

Stars
4.2K
Committers
60

Bot releases are visible (Hide)

powermock - PowerMock 2.0.9 Latest Release

Published by thekingn0thing almost 4 years ago

2.0.9

powermock - powermock-2.0.8

Published by thekingn0thing almost 4 years ago

Release notes were automatically generated by Shipkit

2.0.8

powermock - PowerMock 2.0.2

Published by thekingn0thing over 5 years ago

  • 2019-04-21 - 2 commits by Arthur Zagretdinov - published to Bintray
  • [Bugfixes] PowerMockAgent does not support java >=10 (#979)
  • [Security] Releases are built/executed/released in the context of insecure/untrusted code (#973)
powermock - PowerMock 2.0.1

Published by thekingn0thing over 5 years ago

powermock - PowerMock 2.0.0

Published by thekingn0thing almost 6 years ago

  • 2019-01-07 - 77 commits by 10 authors - published to Bintray
  • Commits: Arthur Zagretdinov (56), PowerMock Release Tools (11), Henri Tremblay (2), Ismael Juma (2), beegee1 (1), Enrico Olivelli (1), hsynkrtl (1), Paul Parenko (1), Sean Gilhooly (1), Timo Meinen (1)
  • [Major changes] Mockito Public API Support Roadmap [(#726)]
  • [Major changes] Dropped supporting Mockito 1.x as result removed module powermock-api-mockito
  • [Major changes] Dropped supporting EasyMock 3.1. Offical supported EasyMock 3.5
    (https://github.com/powermock/powermock/issues/726)
  • [Enhancements] Removed deprecated code in PowerMock 2.0. (#839)
  • [Enhancements] JDK 9 support (#783)
  • [Bugfixes] Fixes #888: Disable Security of X-Stream (#962)
  • [Bugfixes] #959 fix compile error due to unused import of a class which is not i… (#960)
  • [Bugfixes] Issue 939: Error with setInternalState and JDK12 "java.lang.NoSuchFieldException: modifiers (#955)
    (https://github.com/powermock/powermock/pull/948)
  • [Bugfixes] Compile error due to unused import of a class which is not in the dependencies (#959)
  • [Bugfixes] JDK9, power mockito 2.0.0-beta.5 - final class issue when mocking static method (#888)
  • [Bugfixes] @Mock annotation from easymock api does not work for two fields of the same type. (#755)
powermock - PowerMock 2.0.0 RC1

Published by thekingn0thing almost 6 years ago

  • 2018-10-24 - 69 commits by 6 authors - published to Bintray
  • Commits: Arthur Zagretdinov (54), PowerMock Release Tools (11), Henri Tremblay (1), hsynkrtl (1), Ismael Juma (1), Sean Gilhooly (1)
  • [Major changes] Mockito Public API Support Roadmap (#726)
  • [Major changes] Dropped supporting Mockito 1.x as result removed module powermock-api-mockito
  • [Major changes] Dropped supporting EasyMock 3.1. Offical supported EasyMock 3.5
  • [Bugfixes] @Mock annotation from easymock api does not work for two fields of the same type. (#755)
  • [Enhancements] Removed deprecated code in PowerMock 2.0. (#839)
  • [Enhancements] JDK 9 support (#783)
  • Preparing PowerMock 2.0 Release without ByteBuddy [ci maven-central-release] (#948)
  • Use EasyMock exposed MockType instead of the deprecated internal one (#944)
  • Update PowerMockAgent.java (#878)
powermock - PowerMock 1.7.4

Published by thekingn0thing over 6 years ago

Published to Bintray

Improvements:

  • Add supporting Java 9 into PowerMockAgent (#878)
  • Release notes generation fixed (#863)
powermock - PowerMock 2.0.0 Beta 5

Published by thekingn0thing about 7 years ago

It's a first PowerMock 2.0.0 release published to Maven Central.

Published:

Maven Central

Download

Major changes

  • Using only Public Mockito API (#726)
  • Removed deprecated code. (#839)
  • Support JDK 9.0 (#783)

Bug Fixes

  • Fixed regression issue with @mock annotation from easymock api does not work for two fields of the same type. (#755)

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 - PowerMock 1.7.3

Published by thekingn0thing about 7 years ago

Published to Bintray

Bugfixes

  • PowerMock.replayAll does not handle mocks created by annotation processor for org.easymock.Mock annotation (#849)
powermock - PowerMock 1.7.2

Published by thekingn0thing about 7 years ago

Published to Bintray

  • [Bugfixes] @Mock annotation from easymock api does not work for two fields of the same type. (#755)
  • [Enhancements] Use Mockito Shipkit for CD (#826)
powermock - PowerMock 2.0.0 beta 1

Published by thekingn0thing about 7 years ago

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 - PowerMock Release 1.7.1

Published by thekingn0thing about 7 years ago

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 - PowerMock Release 1.7.0

Published by thekingn0thing over 7 years ago

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 - PowerMock v1.7.0RC4

Published by thekingn0thing over 7 years ago

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 - PowerMock v1.7.0RC2

Published by thekingn0thing over 7 years ago

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 - PowerMock 1.6.6

Published by thekingn0thing over 7 years ago

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