Skip to content

Releases: openrewrite/rewrite-testing-frameworks

3.41.0

Choose a tag to compare

@greg-at-moderne greg-at-moderne released this 01 Jul 06:17
95ff73a

What's Changed

  • Keep mockStatic import in CleanupMockitoImports when type info is incomplete by @timtebeek in #1047

Full Changelog: v3.40.0...v3.41.0

v3.39.0

Choose a tag to compare

@timtebeek timtebeek released this 19 Jun 13:58
a8a3615

What's Changed

  • Add PowerMockWhiteboxGetFieldToJavaReflection recipe by @MBoegers in #1025
  • Add PowerMockWhiteboxGetMethodToJavaReflection recipe by @MBoegers in #1026
  • Add PowerMockWhiteboxInvokeConstructorToJavaReflection recipe 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

Choose a tag to compare

@greg-at-moderne greg-at-moderne released this 17 Jun 10:30
862bd49

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 PowerMockWhiteboxToJavaReflection into per-API recipes by @MBoegers in #1021
  • Box primitive casts in Whitebox.getInternalState/invokeMethod reflection by @MBoegers in #1024

Full Changelog: v3.37.0...v3.38.0

3.37.0

Choose a tag to compare

@greg-at-moderne greg-at-moderne released this 03 Jun 14:24

What's Changed

New Contributors

Full Changelog: v3.36.0...v3.37.0

3.36.0

Choose a tag to compare

@timtebeek timtebeek released this 21 May 10:54

What's Changed

  • Skip wrapper-primitive in UseAssertSame; rewrite via AssertTrueComparisonToAssertEquals by @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 JUnit4to5Migration for classes that extend org.junit.Assert by @motlin in #996
  • Preserve newlines when converting @CsvSource(textBlock = ...) to @ValueSource by @timtebeek in #998
  • Fix EnclosedToNested failing with "Expected to find enclosing JavaSourceFile" by @timtebeek in #1001
  • Fix assertEquals delta misinterpreted as message in AssertJ conversion by @timtebeek in #1000
  • Add JUnit 6.1 migration recipes by @timtebeek in #1002
  • Handle Kotlin sources in MockitoWhenOnStaticToMockStatic by @MBoegers in #1003

Full Changelog: v3.35.3...v3.36.0

v3.35.3

Choose a tag to compare

@sambsnyd sambsnyd released this 07 May 07:24
22b9122

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 ClassCastException for @PrepareForTest(fullyQualifiedNames = "...") by @timtebeek in #983
  • Preserve doNothing() stubbings using ArgumentCaptor.capture() by @timtebeek in #988
  • Document strictness implication of RemoveInitMocksIfRunnersSpecified by @timtebeek in #990
  • Support textBlock attribute in CsvSourceToValueSource by @timtebeek in #989
  • Skip primitive comparisons in UseAssertSame by @timtebeek in #992

Full Changelog: v3.35.2...v3.35.3

3.35.2

Choose a tag to compare

@Jenson3210 Jenson3210 released this 27 Apr 10:20

What's Changed

Full Changelog: v3.35.1...v3.35.2

3.35.1

Choose a tag to compare

@Jenson3210 Jenson3210 released this 23 Apr 11:10
92de89a

What's Changed

Full Changelog: v3.35.0...v3.35.1

3.35.0

Choose a tag to compare

@greg-at-moderne greg-at-moderne released this 21 Apr 09:03

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

Choose a tag to compare

@timtebeek timtebeek released this 08 Apr 13:23
d650cdb

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