Releases: openrewrite/rewrite-testing-frameworks
Releases · openrewrite/rewrite-testing-frameworks
Release list
3.41.0
What's Changed
- Keep
mockStaticimport inCleanupMockitoImportswhen type info is incomplete by @timtebeek in #1047
Full Changelog: v3.40.0...v3.41.0
v3.39.0
What's Changed
- Add
PowerMockWhiteboxGetFieldToJavaReflectionrecipe by @MBoegers in #1025 - Add
PowerMockWhiteboxGetMethodToJavaReflectionrecipe by @MBoegers in #1026 - Add
PowerMockWhiteboxInvokeConstructorToJavaReflectionrecipe by @MBoegers in #1027 - Expand TestNG to AssertJ assertion coverage by @juherr in #1028
- Flag un-migratable PowerMock powermock-reflect usage with a comment by @MBoegers in #1016
New Contributors
Full Changelog: v3.38.0...v3.39.0
3.38.0
What's Changed
- Don't add MockitoExtension during migration when unsafe (#875) by @timtebeek in #1017
- Add junit-platform-launcher testRuntimeOnly dependency for Gradle during JUnit 6 migration by @timtebeek in #1018
- Migrate removed LocalStack Service enum and getEndpointOverride in Testcontainers 2.x migration by @MBoegers in #1014
- Re-include CloseUnclosedStaticMocks in Mockito1to4Migration by @steve-aom-elliott in #1019
- Update MockWebServer MockResponse test for nested-type render change by @steve-aom-elliott in #1020
- Fix UsesType precondition pattern in KotlinTestMethodsShouldReturnUnit by @timtebeek in #1022
- Support 4-arg Whitebox.setInternalState(target, field, value, Class) by @MBoegers in #1023
- Refactor
PowerMockWhiteboxToJavaReflectioninto per-API recipes by @MBoegers in #1021 - Box primitive casts in
Whitebox.getInternalState/invokeMethodreflection by @MBoegers in #1024
Full Changelog: v3.37.0...v3.38.0
3.37.0
What's Changed
- Reuse
MockedStaticfor consecutive stubbings of the same class by @timtebeek in #1005 - Add RemoveJupiterMigrationSupport recipe by @sullis in #1006
- Regenerate recipes.csv by @timtebeek in #1007
- fix: retain doNothing() stubs inside lambda bodies to prevent uncompilable code by @darrencilia in #1009
- Migrate deprecated AssertionsForClassTypes/InterfaceTypes to Assertions by @timtebeek in #1010
- Add direct mockwebserver3 dep when only inherited from parent pom by @steve-aom-elliott in #1011
- Match MockWebServer.shutdown() against pre-rename type by @steve-aom-elliott in #1012
New Contributors
- @darrencilia made their first contribution in #1009
Full Changelog: v3.36.0...v3.37.0
3.36.0
What's Changed
- Skip wrapper-primitive in
UseAssertSame; rewrite viaAssertTrueComparisonToAssertEqualsby @motlin in #995 - Add unit test for JUnit6BestPractices by @sullis in #994
- Cleanup junit vintage engine by @sullis in #993
- OpenRewrite recipe best practices by @timtebeek in #997
- Fix
JUnit4to5Migrationfor classes that extendorg.junit.Assertby @motlin in #996 - Preserve newlines when converting
@CsvSource(textBlock = ...)to@ValueSourceby @timtebeek in #998 - Fix
EnclosedToNestedfailing with "Expected to find enclosing JavaSourceFile" by @timtebeek in #1001 - Fix
assertEqualsdelta misinterpreted as message in AssertJ conversion by @timtebeek in #1000 - Add JUnit 6.1 migration recipes by @timtebeek in #1002
- Handle Kotlin sources in
MockitoWhenOnStaticToMockStaticby @MBoegers in #1003
Full Changelog: v3.35.3...v3.36.0
v3.35.3
What's Changed
- OpenRewrite v8.81.6
- Cleanup Mockito AutoCloseable fields by @sullis in #977
- Preserve mockStatic when returned from helper methods by @timtebeek in #979
- Upgrade junit-bom to 6.x in JUnit 5 to 6 migration by @timtebeek in #978
- Tighten PowerMockitoMockStaticToMockito precondition to actual PowerMockito usage by @timtebeek in #981
- Fix AssertTrueInstanceofToAssertInstanceOf static import by @timtebeek in #984
- Fix
ClassCastExceptionfor@PrepareForTest(fullyQualifiedNames = "...")by @timtebeek in #983 - Preserve
doNothing()stubbings usingArgumentCaptor.capture()by @timtebeek in #988 - Document strictness implication of
RemoveInitMocksIfRunnersSpecifiedby @timtebeek in #990 - Support
textBlockattribute inCsvSourceToValueSourceby @timtebeek in #989 - Skip primitive comparisons in
UseAssertSameby @timtebeek in #992
Full Changelog: v3.35.2...v3.35.3
3.35.2
What's Changed
- OpenRewrite v8.81.0: openrewrite/rewrite@v8.81.0...main
Full Changelog: v3.35.1...v3.35.2
3.35.1
What's Changed
- Fix
UpdateMockWebServerDispatcherclasspath lookup by @knutwannheden in #975
Full Changelog: v3.35.0...v3.35.1
3.35.0
What's Changed
- Skip FieldAccess arguments in AssertThrowsOnLastStatement by @timtebeek in #965
- Add MigrateToKafkaNative recipe for Testcontainers (#568) by @timtebeek in #967
- Fix ClassCastException in RemoveTimesZeroAndOne by @timtebeek in #969
- Fix RemoveTryCatchFailBlocks failing when removing blocks within lambda expressions by @sambsnyd in #970
- Use KotlinTypeUtils.isKotlinUnit to match Kotlin void return types by @timtebeek in #971
- Fix MockWebServer Dispatcher return type and RecordedRequest renames by @timtebeek in #972
- Add @MockitoSettings(strictness = Strictness.WARN) for Mockito migration by @bmuschko in #966
Full Changelog: v3.34.0...v3.35.0
3.34.0
What's Changed
- Remove empty if blocks after initMocks/openMocks cleanup by @timtebeek in #952
- Extend SimplifyMockitoVerifyWhenGiven for more S6068 cases by @timtebeek in #953
- Add RemoveDoNothingForDefaultMocks to Mockito1to3Migration by @bmuschko in #956
- Skip private method stubbing in PowerMockitoDoStubbingToMockito by @bmuschko in #957
- Fix AssertToAssertionsTest expectations for static imports by @timtebeek in #958
- Add ThenThrowCheckedExceptionToRuntimeException recipe by @bmuschko in #954
- Fix AnyToNullable removing any() import when untyped any() still used by @timtebeek in #960
- Rename implicit @MethodSource methods in RemoveTestPrefix by @timtebeek in #961
- Add UpgradeWiremockDependencyVersion recipe by @timtebeek in #963
- Support intermediate methods in SimplifyChainedAssertJAssertion by @timtebeek in #962
- Add MigrateToOracleFree recipe for Testcontainers by @timtebeek in #964
Full Changelog: v3.33.0...v3.34.0