Releases: openrewrite/rewrite-testing-frameworks
Releases · openrewrite/rewrite-testing-frameworks
3.16.0
What's Changed
- Use
@ValueSource
instead of@CsvSource
where there's a single arg by @timtebeek in #797 - Adapt
@EnabledOnJre
,@DisabledOnJre
,@EnabledForJreRange
and@DisabledForJreRange
for JUnit 6's Java 17 minimum by @Jenson3210 in #795
Full Changelog: v3.15.1...v3.16.0
v3.15.1
What's Changed
- Update with rewrite 8.60.2
- Add
TestMethodsShouldBeVoid
recipe to fix tests not discovered by @timtebeek in #791 - Recipes to migrate from JUnit 5 to JUnit 6 by @Jenson3210 in #792
- Remove lineSeparator annotation attribute by @Jenson3210 in #793
- Use classpath from resource for Refaster by @jevanlingen in #794
- Add
JUnitTryFailToAssertThatThrownBy
by @timtebeek in #781 - JUnit5BestPractices - Upgrade mockwebserver3-junit5 to 5.1.0 version by @philippe-granet in #796
Full Changelog: v3.15.0...v3.15.1
3.15.0
What's Changed
- Include additional AssertJ migrations by @timtebeek in #773
- Include recipes in larger composites where possible by @timtebeek in #774
- Retain comments when chaining assertions by @timtebeek in #775
- refactor: Static imports for Collections and Collectors by @timtebeek in #779
- Added implementation to extract any expression arguments from last statement in assertThrows by @JohannisK in #724
- Don't clean up mockito imports for Kotlin by @jevanlingen in #782
- Adding dependency guards to the Junit 4 -> 5 migration for when the POM or build.gradle have a dependency on
org.testng:testng
. by @steve-aom-elliott in #760 - rename settings.local.json to settings.json by @zieka in #783
- Fix ClassCastException in PowerMockitoWhenNewToMockito by @timtebeek in #786
- MockitoJUnitRunnerToExtension: Handle existing MockitoExtension by @amishra-u in #788
Full Changelog: v3.14.0...v3.15.0
3.14.1
What's Changed
- OpenRewrite v8.59.1: https://github.com/openrewrite/rewrite
Full Changelog: https://github.com/openrewrite/rewrite-testing-frameworks
3.14.0
What's Changed
- Collapse more consecutive assertions by @timtebeek in #769
- refactor: Unwrap else block after return or throw statement by @timtebeek in #771
- Remove all PowerMock imports after migration by @JohannisK in #770
- Remove
assertTrue(true)
andassertFalse(false)
by @aet2505 in #767
New Contributors
Full Changelog: v3.13.0...v3.14.0
3.13.0
What's Changed
- Removing
NoInitializationForInjectMock
recipe due to side effects when using recipe by @steve-aom-elliott in #765 - Adding functionality to
MockitoWhenOnStaticToMockStatic
for recognizing an existing try-with-resourcesMockedStatic<T>
can be reused instead of creating a new one. by @steve-aom-elliott in #766 - Inconvertible Mockito
when
situation involving lambda and static method. by @steve-aom-elliott in #763 - Changing order of
mockito-all
->mockito-core
change vsorg.mockito:*
upgrade, and made the former upgrade to3.x
at the same time, as there aren't aligned versions between the two. by @steve-aom-elliott in #768
New Contributors
- @steve-aom-elliott made their first contribution in #765
Full Changelog: v3.12.0...v3.13.0
3.12.0
What's Changed
- Fix for JUnit test method throws clause preservation by @knutwannheden in #755
- refactor: org.openrewrite.mavencentral by @Laurens-W in #756
- TestsShouldIncludeAssertions should not remove body for Kotlin by @timtebeek in #757
- Remove
@InjectMocks
from initialized fields by @timtebeek in #758
Full Changelog: v3.11.0...v3.12.0
3.11.0
What's Changed
- Drop
contextSensitive
fromExpectedExceptionToAssertThrows
by @timtebeek in #741 - CloseUnclosedStaticMocks: Handle Nested class, qualifiedclass name. by @amishra-u in #742
- Include additional AssertJ rules/recipes from Error Prone Support by @timtebeek in #713
- Do not ever exclude junit if Testcontainers is used by @DidierLoiseau in #746
- Migrate Traits class usage to constructor calls by @MBoegers in #747
- testcontainers 1.21.x by @sullis in #750
- refactor: Adopt
J.Literal.isLiteralValue(expression, null)
by @timtebeek in #751 - xmlunit 2.10.3 by @greg-at-moderne in #753
New Contributors
- @DidierLoiseau made their first contribution in #746
Full Changelog: v3.10.0...v3.11.0
3.10.0
What's Changed
- ExpectedExceptionToAssertThrows: Handle branching and var usage in except methods by @amishra-u in #721
- xmlunit 2.10.2 by @greg-at-moderne in #737
- Fix for Assertions.assertDoesNotThrow generator by @arodionov in #735
- Recipe for closing unclosed static mocks by @amishra-u in #739
Full Changelog: v3.9.0...v3.10.0
v3.9.0
What's Changed
- Fix TemporaryFolderToTempDir: Don't add methods to unrelated classes by @amishra-u in #722
- Fix import ambiguity regression by reordering AddImport/RemoveImport by @amishra-u in #731
- ReplaceInitMockToOpenMock: Ensure unique name for added tearDown method by @amishra-u in #725
- Added support for generic instanceof checks in
AssertTrueInstanceofToAssertInstanceOf
recipe by @JohannisK in #734
Full Changelog: v3.8.0...v3.9.0