Releases: openrewrite/rewrite-testing-frameworks
Releases · openrewrite/rewrite-testing-frameworks
2.24.0
What's Changed
- Add AssertJ dependency if using Hamcrest by @timtebeek in #648
- Migration from Easymock to Mockito by @jevanlingen in #639
- Migrate Hamcrest to JUnit 5 by @matusmatokpt in #343
- Add recipes to migrate from TestNG to AssertJ by @ssheikin in #520
- Migrate Jmockit VerificationsInOrder to Mockito by @shivanisky in #632
- Apply the MSAL license by @jkschneider in #649
- Apply MSAL license when generating POMs by @jkschneider in #650
- AssertJ assertions not collapsed on Integer by @timo-abele in #604
New Contributors
Full Changelog: v2.23.0...v2.24.0
2.23.1
What's Changed
- OpenRewrite v8.41.1: https://github.com/openrewrite/rewrite
Full Changelog: https://github.com/openrewrite/rewrite-testing-frameworks
2.23.0
What's Changed
- don't exclude junit4 for testcontainers jupiter by @sullis in #641
- Use JUnit5's
assertSame
orassertNotSame
instead ofassertTrue(... == ...)
by @mccartney in #642 - Add support for Junit 4 matchers on AssertionsArgumentOrder by @adambir in #637
- Move HtmlUnit migrations to rewrite-testing-frameworks by @timtebeek in #643
New Contributors
- @mccartney made their first contribution in #642
Full Changelog: v2.22.0...v2.23.0
2.22.0
What's Changed
- refactor: add @nullable to methods who may return null by @nielsdebruin in #621
- Add
@MockitoSettings(strictness = ...)
based on how Mockito is used, not based on version alone by @Jenson3210 in #623 - Drop RetainStrictnessWarn; replaced with #623 by @timtebeek in #625
- Added default warn strictness if no strictness modifiers are used. by @Jenson3210 in #626
- SimplifyChainedAssertJAssertion drops method calls in replacement by @jtymes in #629
- Add JMockit's MockUp to Mockito migration by @SiBorea in #599
- Initial support for DbRider migration from junit4 to junit5 by @Jenson3210 in #627
assertInstanceOf
not converted from JUnit5 to assertJ by @timo-abele in #606- Add
VerifyZeroToNoMoreInteractions
for Mockito 2 by @jevanlingen in #631 - Added handling of org.mockito.Mockito.eq(..) when simplifying mockito matchers by @adambir in #635
- Update AssertJ recipes to current recipe code style by @jevanlingen in #633
New Contributors
- @nielsdebruin made their first contribution in #621
- @Jenson3210 made their first contribution in #623
- @jtymes made their first contribution in #629
- @SiBorea made their first contribution in #599
- @jevanlingen made their first contribution in #631
- @adambir made their first contribution in #635
Full Changelog: v2.21.0...v2.22.0
2.21.0
What's Changed
- Add recipe for replacing unnecesary Mockito#eq with direct parameters by @SanderKnauff in #615
- Jmockit mockito full verifications and Refactor tests by @shivanisky in #617
New Contributors
- @SanderKnauff made their first contribution in #615
Full Changelog: v2.20.1...v2.21.0
2.20.1
What's Changed
- JMockit to Mockito IllegalArumentException No enum constant VerificationsInOrder by @shivanisky in #616
- Migrate JMockit block to Mockito which contains redundant "this" prefix for arg matcher and migrate array as parameter for any by @yurii-yu in #610
- Migrate AssertJ Fail.fail to Assertions.fail by @timtebeek in d81cc70
- Only simplify chained AssertJ assertions with a single argument by @timtebeek in e8fca5a
Full Changelog: v2.20.0...v2.20.1
2.20.0
What's Changed
PowerMockitoMockStaticToMockito
should not remove existingmockStatic
initializer by @Laurens-W in #612- update to latest error prone to remove [email protected] vulnerability by @natedanner in #613
Full Changelog: v2.19.0...v2.20.0
2.19.0
What's Changed
- When upgrading mockito also upgrade potential byte buddy dependencies by @Laurens-W in #600
- Include
ReplacePowerMockito
withMockito1to3Migration
again by @timtebeek in #602 - Bugfix/multiple curly braces in one verification block by @yurii-yu in #603
- Refactor
Mockito.when
on static (non mock) to try with resource by @Laurens-W in #601 - refactor: Operator wrapping on end of line by @timtebeek in #608
- refactor: Update Gradle wrapper by @shanman190 in #609
Full Changelog: v2.18.0...v2.19.0
2.18.0
What's Changed
- Migrate JBehave
JUnitStories
toJupiterStories
by @Laurens-W in #591 - Do not perform
JUnit4to5Migration
where TestNG is used by @Laurens-W in #592 - Add
MockRestServiceServer.verify
to default assertions by @ArloL in #593 - Move Junit 5 assertThrows to last statement in lamdba by @shivanisky in #590
- Add recipes for negative variants of startsWith, endsWith, and matches by @Tahanima in #594
- refactor: Update Gradle wrapper by @shanman190 in #595
- Handle multiple blocks in JMockit Expectations by @yurii-yu in #596
New Contributors
- @ArloL made their first contribution in #593
- @Tahanima made their first contribution in #594
- @yurii-yu made their first contribution in #596
Full Changelog: v2.17.1...v2.18.0
2.17.1
What's Changed
PowerMockitoMockStaticToMockito
duplicates variables and methods when static nested class is involved by @Laurens-W in #588- Add Mockito best practices to clear out MockitoSettings by @timtebeek in 996709b
Full Changelog: v2.17.0...v2.17.1