Skip to content

Releases: openrewrite/rewrite-testing-frameworks

2.20.1

11 Oct 11:57
Compare
Choose a tag to compare

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

10 Oct 09:02
058d2ff
Compare
Choose a tag to compare

What's Changed

  • PowerMockitoMockStaticToMockito should not remove existing mockStatic initializer by @Laurens-W in #612
  • update to latest error prone to remove protobuf-java@3.19.2 vulnerability by @natedanner in #613

Full Changelog: v2.19.0...v2.20.0

2.19.0

24 Sep 19:52
823e3c3
Compare
Choose a tag to compare

What's Changed

  • When upgrading mockito also upgrade potential byte buddy dependencies by @Laurens-W in #600
  • Include ReplacePowerMockito with Mockito1to3Migration 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

11 Sep 18:27
e9497f1
Compare
Choose a tag to compare

What's Changed

  • Migrate JBehave JUnitStories to JupiterStories 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

Full Changelog: v2.17.1...v2.18.0

2.17.1

03 Sep 14:00
Compare
Choose a tag to compare

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

28 Aug 14:37
Compare
Choose a tag to compare

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 using assertThat or assumeThat 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

12 Aug 20:30
b1e8bf0
Compare
Choose a tag to compare

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) and assertFalse(true, String) with fail(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

Full Changelog: v2.15.0...v2.16.0

2.15.0

31 Jul 12:57
d067547
Compare
Choose a tag to compare

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

15 Jul 09:47
3eb8e87
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.14.0...v2.14.1

2.14.0

11 Jul 12:47
5a2d834
Compare
Choose a tag to compare

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

  • @velo made their first contribution in #548

Full Changelog: v2.13.0...v2.14.0