Releases: openrewrite/rewrite-testing-frameworks
Releases · openrewrite/rewrite-testing-frameworks
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
3.8.0
What's Changed
- refactor: OpenRewrite Recipe best practices by @timtebeek in #712
- Fix Import of Mockito classes in MockitoRuleToExtension recipe by @amishra-u in #715
- Resolve failing tests by @timtebeek in #716
- Fix exception handling in ReplaceInitMockito recipe by @amishra-u in #719
- Fix Incorrect Migration of TemporaryFolder.newFile in TemporaryFolderToTmpDir Recipe by @amishra-u in #714
- Fix JunitParams to Parameterized by recursively updating referenced method to static by @amishra-u in #717
- Utilize MockitoJUnitRunnerToExtension for UseMockitoExtension by @amishra-u in #711
- Fix ParameterizedRunnerToParameterized: Remove redundant super call by @amishra-u in #718
- Handle non-@rule TemporaryFolder fields by @amishra-u in #720
Full Changelog: v3.7.0...v3.8.0
3.7.0
What's Changed
- Convert JUnit AssertThrows with description message over to AssertJ by @lewisbirks in #699
- Recipe to remove initMocks if specified JUnit runners by @arodionov in #695
- Adding stale workflow by @greg-at-moderne in #701
- Convert JUnit AssertThrows with assigment over to AssertJ by @lewisbirks in #702
- Adopt AssertJ NumberAssert by @JohannisK in #698
- Fix doc typo in SimplifyAssertJAssertion by @stefanodallapalma in #704
- Fix: Don't modify regular test to parameterized test incorrectly by @amishra-u in #707
- Add support for CsvSource migration by @amishra-u in #706
- Fix ParameterizedRunnerToParameterized recipe: Preserve field-dependent setup logic by @amishra-u in #708
- Recipe to replace
initMocks
withopenMocks
by @arodionov in #700 - Implement MockitoJUnitRunner to Extension Recipe by @amishra-u in #709
- Add support to migrate EnvironmentVariables TestRule by @amishra-u in #705
New Contributors
- @lewisbirks made their first contribution in #699
- @stefanodallapalma made their first contribution in #704
- @amishra-u made their first contribution in #707
Full Changelog: v3.6.1...v3.7.0
3.6.1
Full Changelog: v3.6.0...v3.6.1
3.6.0
What's Changed
- Fest 2.x to AssertJ by @JohannisK in #688
- Replace AssertJ's
hasSize
withhasSameSizeAs
where applicable by @arodionov in #690 - Increase heap size for tests by @knutwannheden in #692
- Do not
ChangeMethodTargetToStatic
for AssertJ'sAssertionsFor...Types
by @timtebeek in #693 - Update MSAL by @MBoegers in #694
- Recipe to replace @rule Timeout to JUnit 5 Timeout annotation by @arodionov in #691
New Contributors
- @JohannisK made their first contribution in #688
- @arodionov made their first contribution in #690
Full Changelog: v3.5.0...v3.6.0
3.5.1
What's Changed
- OpenRewrite v8.49.0: https://github.com/openrewrite/rewrite
Full Changelog: https://github.com/openrewrite/rewrite-testing-frameworks