Releases: openrewrite/rewrite-testing-frameworks
Releases · openrewrite/rewrite-testing-frameworks
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
2.17.0
What's Changed
- refactor: Update Gradle wrapper by @shanman190 in #576
- Migrate to JSpecify from OpenRewrite JSR-305 meta-annotations by @jkschneider in #580
- Convert lambda block to expression after adopting
assertThrows
by @shivanisky in #582 - Only add
hamcrest-junit
dependency when usingassertThat
orassumeThat
by @FieteO in #577 - Collapse consecutive
assertThat
statements (#373) by @srmalkan in #392 - Add JUnit Jupiter dependency to the right scope by @timtebeek in #586
- Retain Mockito Strictness WARN when switching to JUnit 5 through
@MockitoSettings(strictness = Strictness.WARN)
by @Laurens-W in #584
New Contributors
Full Changelog: v2.16.0...v2.17.0
2.16.0
What's Changed
- Add unit tests for JMockit Delegate to mockito migration. Also add test case for comments by @shivanisky in #557
- Convert
assertTrue(false, String)
andassertFalse(true, String)
withfail(String)
by @Laurens-W in #558 - Avoid duplicate before/after annotations in JUnit 3 to 5 by @timtebeek in #562
- Remove throws from method that adopts
assertThrows
by @timtebeek in #564 - Dont convert try catch fail when return by @Laurens-W in #566
- Use error-prone-contrib AssertJ recipes by @timtebeek in #559
- Chained AssertJ assertions should be simplified to the corresponding dedicated assertion by @velo in #556
- Context free SimplifyAssertJAssertion by @timtebeek in #570
New Contributors
- @Laurens-W made their first contribution in #558
Full Changelog: v2.15.0...v2.16.0
2.15.0
What's Changed
- Simplify toString assertion by @velo in #554
- ExpectedExceptionToAssertThrows should not wrap single statement by @timtebeek in #555
Full Changelog: v2.14.1...v2.15.0
2.14.1
What's Changed
- refactor: Update Gradle wrapper by @shanman190 in #551
Full Changelog: v2.14.0...v2.14.1
2.14.0
What's Changed
- Add migration of JMockit NonStrictExpectations blocks as well as JMockit junit 4 runner by @shivanisky in #546
- More best pratices for AssertJ by @velo in #548
- JMockit NonStrictExpectations with times should be migrated to default when without lenient(), refactor by @shivanisky in #549
- Correctly replace Date and Instant hamcrest assertions to AssertJ by @timtebeek in 33c97a2 for #526
- Delegate to the Mockito 4 upgrade from JUnit 5 upgrade by @timtebeek in f1fda26 for #541
- Prevent incorrect change from IsEqualToBoolean by @timtebeek in a79dc45
New Contributors
Full Changelog: v2.13.0...v2.14.0
2.13.0
What's Changed
- Jmockit Expectations with no times or result should be transformed to Mockito verify statement by @shivanisky in #530
- Rewrite both JMockit
@Mocked
and@Injectable
annotated arguments by @shivanisky in #532 - Add Kotlin support for JUnit recipes: UpdateBeforeAfterAnnotations by @amitojduggal in #533
- CleanupMockitoImports should not remove used mockito kotlin imports by @gideon-sunbit in #539
- Migrate JMockit Verifications to Mockito by @shivanisky in #540
- Skip RemoveTestPrefix when calling a similarly named method by @timtebeek in #543
- Add AssertTrueNullToAssertNull to CleanupAssertions by @protocol7 in #542
New Contributors
- @shivanisky made their first contribution in #530
- @gideon-sunbit made their first contribution in #539
- @protocol7 made their first contribution in #542
Full Changelog: v2.12.1...v2.13.0
2.12.2
What's Changed
- Drop Java 17 requirement through rewrite-third-party by @timtebeek in #531
Full Changelog: v2.12.0...v2.12.2
2.12.1
What's Changed
- Drop Java 17 requirement through rewrite-third-party by @timtebeek in #531
Full Changelog: v2.12.0...v2.12.1
2.12.0
What's Changed
- Migrate all Hamcrest matchers from core package by @timtebeek in #523
- Idiomatic AssertJ assertions for empty Strings by @timtebeek in #525
- Do not reduce visibility of extended classes in
TestsShouldNotBePublic
by @timtebeek in #524 - Add Kotlin support for Junit 5 recipes 1: CleanupJUnitImports by @amitojduggal in #528
- Add Picnic AssertJ rules to AssertJ best practices by @timtebeek in #527
New Contributors
- @amitojduggal made their first contribution in #528
Full Changelog: v2.11.0...v2.12.0