Skip to content

Releases: openrewrite/rewrite-testing-frameworks

1.11.0

21 Aug 03:56
Compare
Choose a tag to compare

Enhancements:

  • Updated with rewrite 7.12.0
  • Re-enable AddDependency recipes.

Fixes:

  • Corrected a nested recipe name in the AssertJ composite recipe

1.10.0

12 Aug 23:56
Compare
Choose a tag to compare

Enhancements:

  • Updated with rewrite 7.11.0
  • New recipe: JUnit TestName @rule to JUnit Jupiter TestInfo #166

Fixes:

  • TestRuleToTestInfo adds initialization statements to the end of @beforeeach function when it needs to be at the beginning #167

1.9.0

28 Jul 22:41
1125324
Compare
Choose a tag to compare

Enhancements:

  • Updated with rewrite 7.10.0

Fixes:

  • Maintain line breaks in assert statement migration 6a831c2
  • Fix UpdateTestAnnotation to properly type attribute assertThrows d58d2c7
  • ParameterizedRunnerToParameterized does not support nested parameterized tests #163

1.8.0

16 Jul 16:28
Compare
Choose a tag to compare

Enhancements:

  • Updated with rewrite 7.9.0

Fixes:

  • TemporaryFolderToTempDir throws ClassCastException on J.Identifier vs Statement #159
  • MigrateJunitTestCase recipe should remove final modifiers from fields used for parameterized tests #149

1.7.1

02 Jul 01:12
ec37243
Compare
Choose a tag to compare

Enhancements:

  • Updated with rewrite 7.8.1

1.7.0

30 Jun 04:52
ec37243
Compare
Choose a tag to compare

Enhancements:

  • Updated with rewrite 7.8.0
  • A new recipe to remove public modifiers of JUnit5 test classes #158

Fixes:

  • Hamcrest & Mockito dependencies are now added only to test scope. 949d282
  • TestsShouldIncludeAssertions templating issue f97e0b6
  • TemporaryFolderToTempDir was creating code that was not correctly type attributed #150
  • ExpectedException#expectMessage is not properly converted to JUnit 5 #153
  • ParameterizedRunnerToParameterized class cast exception #152
  • Fix formatting in visitors that remove annotations fbb2715

1.6.0

12 Jun 00:28
Compare
Choose a tag to compare

Enhancements:

  • Update with rewrite core libraries 7.7.0

Fixes:

  • Wrong receiver type on hamcrest method after JUnit 4 -> 5 migration #145
  • TemporaryFolderToTempDir does not preserve field modifiers #143
  • TemporaryFolderToTempDir JavaTemplate error when translating new file method invocation #142
  • ExpectedExceptionToAssertThrows. Fix assertThrows template by using the any keyword for the TypedTree exception class parameter and adding MultipleFailuresError to the JupiterAssertions shim. 8f7842b
  • Fix AssertToAssertions, rather than Changing type of all junit.Assert leverage ChangeMethodTargetToStatic for applicable types. f7923c8
  • TemporaryFolderToTempDir updates to ensure all org.junit.rules types are converted and not added to the TypeCache. 64aaf80
  • Fix CleanupMockitoImports so that it doesn't remove or re-order non-mockito imports 8cd3e75

1.5.0

26 May 05:39
Compare
Choose a tag to compare

Enhancements:

  • Update for rewrite 7.6.0
  • Implement inexpensive single source applicability tests (#131)
  • JUnit 4 to 5 TestCase migration recipe. (#135)

Fixes:

  • JUnitToAssertj does not remove all occurrences of JUnit assertions. #133
  • Disable test method access modifications (#138)

1.4.0

11 May 00:34
Compare
Choose a tag to compare
  • Update with rewrite 7.4.0
  • Add assertj dependency as part of migrating JUnit asserts to assertj (issue #8)

1.3.1

07 May 22:35
Compare
Choose a tag to compare
v1.3.1

Remove FindMethods from AddHamcrestIfUsed since AddDependency is now …