Releases: easymock/easymock
5.2.0
Fixes problems with Java 17 for mocks in different modules.
Also fixes the source jar that was empty.
Change log
- EasyMock HEAD build fails on JDK21 (#442)
- Error running tests after Java upgrade to IBM Semeru jdk-17.0.6+10 (from jdk1.8.0_311.jdk) (#393)
- LinkageError when mocking certain classes (#373)
- pom file error: the source.jar is not deployed correctly to maven (#369)
- Can't mock methods called from the constructor of a partial mock (#358)
- Partial mocking Swing components in EasyMock 5.1.0 (#356)
- java.lang.NoSuchMethodException on mock(Timestamp.class) (#256)
- Bump com.puppycrawl.tools:checkstyle from 10.12.2 to 10.12.3 (#461)
- Bump net.bytebuddy:byte-buddy from 1.14.6 to 1.14.7 (#460)
- Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.3.0 to 3.4.0 (#458)
- Bump net.bytebuddy:byte-buddy from 1.14.5 to 1.14.6 (#457)
- Bump commonmarker from 0.23.9 to 0.23.10 in /website (#454)
- Bump jmh.version from 1.36 to 1.37 (#452)
- Bump com.puppycrawl.tools:checkstyle from 10.12.1 to 10.12.2 (#450)
- Bump junit.jupiter.version from 5.9.3 to 5.10.0 (#449)
- Bump depends-maven-plugin from 1.4.0 to 1.5.0 (#447)
- Bump checkstyle from 10.12.0 to 10.12.1 (#446)
- Bump maven-clean-plugin from 3.2.0 to 3.3.1 (#445)
- Bump spotbugs-maven-plugin from 4.7.3.4 to 4.7.3.5 (#444)
- Bump maven-shade-plugin from 3.4.1 to 3.5.0 (#443)
- Bump surefire-testng from 3.1.0 to 3.1.2 (#440)
- Bump versions-maven-plugin from 2.15.0 to 2.16.0 (#439)
- Bump maven-project-info-reports-plugin from 3.4.4 to 3.4.5 (#438)
- Bump maven-surefire-plugin from 3.1.0 to 3.1.2 (#437)
- Bump surefire-junit-platform from 3.1.0 to 3.1.2 (#436)
- Bump byte-buddy from 1.14.4 to 1.14.5 (#435)
- Bump maven-project-info-reports-plugin from 3.4.3 to 3.4.4 (#434)
- Bump checkstyle from 10.11.0 to 10.12.0 (#433)
- Bump maven-dependency-plugin from 3.5.0 to 3.6.0 (#432)
- Bump maven-checkstyle-plugin from 3.2.2 to 3.3.0 (#431)
- Bump maven-source-plugin from 3.2.1 to 3.3.0 (#429)
- Bump maven-bundle-plugin from 5.1.8 to 5.1.9 (#428)
- Bump maven-pmd-plugin from 3.20.0 to 3.21.0 (#427)
- Bump maven-assembly-plugin from 3.5.0 to 3.6.0 (#426)
- Bump maven-remote-resources-plugin from 3.0.0 to 3.1.0 (#425)
- Bump build-helper-maven-plugin from 3.3.0 to 3.4.0 (#424)
- Bump checkstyle from 10.10.0 to 10.11.0 (#423)
- Bump maven-surefire-plugin from 3.0.0 to 3.1.0 (#422)
- Bump maven-gpg-plugin from 3.0.1 to 3.1.0 (#421)
- Bump surefire-testng from 3.0.0 to 3.1.0 (#420)
- Bump surefire-junit-platform from 3.0.0 to 3.1.0 (#419)
- Bump junit.jupiter.version from 5.9.2 to 5.9.3 (#418)
- Bump checkstyle from 10.9.3 to 10.10.0 (#417)
- Bump jacoco-maven-plugin from 0.8.9 to 0.8.10 (#416)
- Bump maven-checkstyle-plugin from 3.2.1 to 3.2.2 (#414)
- Bump maven-project-info-reports-plugin from 3.4.2 to 3.4.3 (#413)
- Bump nokogiri from 1.14.2 to 1.14.3 in /website (#412)
- Bump commonmarker from 0.23.8 to 0.23.9 in /website (#411)
- Bump spotbugs-maven-plugin from 4.7.3.3 to 4.7.3.4 (#410)
- Bump byte-buddy from 1.14.3 to 1.14.4 (#409)
- Bump maven-enforcer-plugin from 3.2.1 to 3.3.0 (#408)
- Bump jacoco-maven-plugin from 0.8.8 to 0.8.9 (#407)
- Bump byte-buddy from 1.14.2 to 1.14.3 (#406)
- Bump checkstyle from 10.9.2 to 10.9.3 (#405)
- Bump asm from 9.4 to 9.5 (#404)
- Bump maven-deploy-plugin from 3.1.0 to 3.1.1 (#403)
- Bump animal-sniffer-maven-plugin from 1.22 to 1.23 (#402)
- Bump maven-install-plugin from 3.1.0 to 3.1.1 (#401)
- Bump maven-resources-plugin from 3.3.0 to 3.3.1 (#400)
- Bump license-maven-plugin from 4.1 to 4.2 (#399)
- Bump spotbugs-maven-plugin from 4.7.3.2 to 4.7.3.3 (#398)
- Bump checkstyle from 10.9.1 to 10.9.2 (#397)
- Bump checkstyle from 10.8.1 to 10.9.1 (#396)
- Bump logback-classic from 1.3.5 to 1.4.6 (#394)
- Bump surefire-testng from 3.0.0-M9 to 3.0.0 (#392)
- Bump surefire-junit-platform from 3.0.0-M9 to 3.0.0 (#391)
- Bump maven-surefire-plugin from 3.0.0-M9 to 3.0.0 (#390)
- Bump byte-buddy from 1.14.1 to 1.14.2 (#389)
- Bump checkstyle from 10.8.0 to 10.8.1 (#388)
- Bump byte-buddy from 1.14.0 to 1.14.1 (#387)
- Bump maven-compiler-plugin from 3.10.1 to 3.11.0 (#386)
- Bump checkstyle from 10.7.0 to 10.8.0 (#385)
- Bump spotbugs-maven-plugin from 4.7.3.0 to 4.7.3.2 (#384)
- Bump maven-assembly-plugin from 3.4.2 to 3.5.0 (#383)
- Bump versions-maven-plugin from 2.14.2 to 2.15.0 (#382)
- Bump byte-buddy from 1.13.0 to 1.14.0 (#381)
- Bump maven-javadoc-plugin from 3.4.1 to 3.5.0 (#379)
- Bump surefire-junit-platform from 3.0.0-M8 to 3.0.0-M9 (#378)
- Bump surefire-testng from 3.0.0-M8 to 3.0.0-M9 (#377)
- Bump maven-surefire-plugin from 3.0.0-M8 to 3.0.0-M9 (#376)
- Bump byte-buddy from 1.12.23 to 1.13.0 (#375)
- Bump maven-deploy-plugin from 3.0.0 to 3.1.0 (#374)
- Bump byte-buddy from 1.12.22 to 1.12.23 (#372)
- Bump maven-enforcer-plugin from 3.1.0 to 3.2.1 (#371)
- Bump checkstyle from 10.6.0 to 10.7.0 (#370)
- Bump maven-pmd-plugin from 3.19.0 to 3.20.0 (#367)
- Bump byte-buddy from 1.12.21 to 1.12.22 (#366)
- Bump surefire-junit-platform from 3.0.0-M7 to 3.0.0-M8 (#365)
- Bump surefire-testng from 3.0.0-M7 to 3.0.0-M8 (#364)
- Bump maven-dependency-plugin from 3.4.0 to 3.5.0 (#363)
- Bump maven-surefire-plugin from 3.0.0-M7 to 3.0.0-M8 (#362)
- Bump maven-checkstyle-plugin from 3.2.0 to 3.2.1 (#361)
- Bump maven-project-info-reports-plugin from 3.4.1 to 3.4.2 ([#360](ht...
5.1.0
Mainly a performance fix caused by ByteBuddy causing OOME.
Change log
- Typecache for create mock classes (#353)
- Bump versions-maven-plugin from 2.14.1 to 2.14.2 (#352)
- Bump wagon-ssh-external from 3.5.2 to 3.5.3 (#351)
- Bump byte-buddy from 1.12.19 to 1.12.20 (#350)
- Bump versions-maven-plugin from 2.14.0 to 2.14.1 (#349)
- Bump versions-maven-plugin from 2.13.0 to 2.14.0 (#348)
- Bump testng from 7.5 to 7.7.0 (#347)
- Bump maven-dependency-plugin from 3.3.0 to 3.4.0 (#345)
- Bump checkstyle from 10.4 to 10.5.0 (#344)
- java.lang.NullPointerException at org.easymock.internal.ClassProxyFactory.classPackage(ClassProxyFactory.java:178) (#343)
- EasyMock 5.0.1 OOM on large project (#338)
- Bump spotbugs-maven-plugin from 4.7.2.1 to 4.7.3.0 (#337)
- Bump checkstyle from 10.3.4 to 10.4 (#336)
- Bump maven-shade-plugin from 3.4.0 to 3.4.1 (#335)
- Add cache for mocked types. (#334)
- Mock serialization doesn't work (#312)
5.0.1
Quick fix allowing package-private methods to be mocked.
Change log
- Mocking package-private methods not working in 5.0.0 (#331)
- Bump versions-maven-plugin from 2.12.0 to 2.13.0 (#333)
- Bump nokogiri from 1.13.8 to 1.13.9 in /website (#332)
- Bump spotbugs from 4.7.2 to 4.7.3 (#330)
- Bump maven-javadoc-plugin from 3.2.0 to 3.4.1 (#329)
- Bump nexus-staging-maven-plugin from 1.6.8 to 1.6.13 (#328)
- Bump maven-compiler-plugin from 3.8.1 to 3.10.1 (#327)
- Bump animal-sniffer-maven-plugin from 1.20 to 1.22 (#326)
- Bump maven-deploy-plugin from 3.0.0-M1 to 3.0.0 (#325)
- Bump maven-pmd-plugin from 3.14.0 to 3.19.0 (#324)
- Bump maven-resources-plugin from 3.2.0 to 3.3.0 (#323)
- Bump maven-site-plugin from 3.9.1 to 3.12.1 (#322)
- Bump exec-maven-plugin from 3.0.0 to 3.1.0 (#321)
- Bump maven-remote-resources-plugin from 1.7.0 to 3.0.0 (#319)
5.0.0
This major release announce the move from Cglib to ByteBuddy.
Sadly good old Cglib can't cope with all the tricks needed to workaround JPMS and reflection limitations.
It means you will most probably experience some issues until it stabilizes.
The good news are that this version is working up to Java 18.
Known issues:
All help is greatly appreciated.
Change log
- Replace Cglib with Bytebuddy to support Java 9+ (#300)
- Fix core source-jar, added maven-source-plugin (#283)
- Upgrade to ASM 9.2 so that easymock can work with JDK18-EA #277 (#278)
- Upgrade to ASM 9.2 so that easymock can work with JDK18-EA (#277)
- Does not work with Java 17 (#274)
- Allow @mock to get a default name from the variable being mocked (#260)
- Easymock doesn't work in Java 11 with --illegal-access=deny (#235)
4.3
Add support to Java 16. You can now do a partial mock for default methods.
Change log
- Update Objenesis to 3.2 (#269)
- Easymock 4.2 fails with Java 16 (Unsupported class file major version 60) (#268)
- Update asm to 9.1 (#267)
- Allow partial mocking for interfaces with default methods (#264)
- be more generic about jq install (#257)
- Easymock throws java.lang.OutOfMemoryError: Java heap space trying to output large array (10MB+) (#255)
- Serve easymock.org over HTTPS (#220)
4.2
4.1
Add support to Java 13 and JUnit 5.
Change log
- Upgrade to Objenesis 3.1 (#250)
- java.lang.IllegalArgumentException: Unsupported class file major version 57/58 (#249)
- Please comply with ASM license when re-distributing ASM (#247)
- Add EasyMockExtension class for JUnit 5 compatibility (#246)
- JUnit 5 support (extension instead of EasyMockRunner) (#245)
- Add getCurrentArgument to get type inference for the returned type (#243)
- CglibTest fails on OpenJDK 13 EA. (#241)
4.0.2
4.0.1
4.0
This release adds support for Java 11 and moves to Java 8.
EasyMock inference has been changed. It should be backward compatible in most cases. However,
a type witness might be necessary.
To be clear, starting now List<String> list = mock(List.class);
will compile perfectly without
any warning. However, String s = mock(List.class);
will also compile. But I'm expecting you
not to be crazy enough to do such thing. It will do a ClassCastException
at runtime anyway.
However, you might see your code failing to infer the return type, in that case, use a type
witness e.g. foo(EasyMock.<List<String>>mock(List.class)
and it will some the problem nicely,
and again, without a warning.
Release notes
- Add Java 11 support
- Drop Java 6 and 7 support. Support now starts at Java 8
- Decorrelate mock requested and returned type