Repository navigation
Releases
Releases · openrewrite/rewrite-testing-frameworks
3.73.0
Full Changelog: v3.72.0...v3.73.0
3.72.0
What's Changed
- OpenRewrite recipe best practices by @timtebeek in #1346
Full Changelog: v3.71.0...v3.72.0
3.71.0
What's Changed
- Indent JUnitAssertEqualsToAssertThatTest's custom-class test with four spaces by @jkschneider in #1343
- Indent two AddTestcontainersAnnotationsTest inputs like the rest of the file by @jkschneider in #1344
- Migrate Hamcrest to AssertJ without leaving Hamcrest behind by @sambsnyd in #1345
Full Changelog: v3.70.0...v3.71.0
3.70.0
What's Changed
- Migrate static
MemberModifier.stubandsuppresstoMockito.mockStaticby @timtebeek in #1336 - Migrate
Whiteboxand remove PowerMock plumbing when replacing PowerMockito by @timtebeek in #1337 - Migrate PowerMockito
doXstubbing of static calls and constant method names by @timtebeek in #1339 - Migrate PowerMockito.whenNew with several stubs and verifyNew to Mockito by @timtebeek in #1338
- Migrate
PowerMockito.whenby method name andverifyStaticaround captors by @timtebeek in #1335 - Comment out initializers and remove annotations holding PowerMock usage of a disabled class by @krlittle in #1269
- Do not wrap or widen for Whitebox reflection an enclosing
tryalready catches by @krlittle in #1265 - Ask
Scopewhere recipes name variables or move code between scopes by @knutwannheden in #1340 - Shorten fully qualified Java type references by @jkschneider in #1342
Full Changelog: v3.69.0...v3.70.0
3.69.0
What's Changed
- Attribute types on untyped field accesses by @timtebeek in #1327
- Comment out PowerMock usage that
DisableUnsupportedPowerMockTestscould not annotate by @timtebeek in #1328 - Bail out of
MockConstructionToTryWithResourcesfor scope and early closes by @timtebeek in #1329 - Keep declared generic and array types and skip lambda blocks in Whitebox reflection recipes by @timtebeek in #1330
- Keep
doNothing()that overrides an earlier stub inRemoveDoNothingForDefaultMocksby @timtebeek in #1332 - Bail out of
PowerMockitoDoStubbingToMockitofor ambiguous private overloads by @timtebeek in #1333 - Mock the nested class itself in
MockitoWhenOnStaticToMockStaticby @timtebeek in #1331 - Smaller Mockito fixes: array matcher casts,
@InjectMocksinjection,throws Eby @timtebeek in #1334
Full Changelog: v3.68.0...v3.69.0
3.68.0
What's Changed
- Add recipe to upgrade Gatling 3.x to 3.16 by @sullis in #1259
- Keep calls that may throw inside the AssertThrowsOnLastStatement lambda by @timtebeek in #1306
- Add JUnit 3 to 4 migration recipes by @timtebeek in #1294
- Type JavaTemplate placeholders whose parameter type the target API fixes by @timtebeek in #1307
- Scan other files for uses of System Rules fields before migrating them by @timtebeek in #1310
- Only convert unreferenced
@Rule TimeoutinTimeoutRuleToClassAnnotationby @timtebeek in #1309 - Fix
TestRuleToTestInfofile-wide@Beforerename, dropped parameters and forced spacing by @timtebeek in #1308 - Fix
ExpectedExceptionToAssertThrowsname clash, droppedthrowsand@Beforeexpectations by @timtebeek in #1311 - Bail out of
JUnitParamsRunnerToParameterizedfor init methods reading instance state by @timtebeek in #1312 - Add
hamcrest-junitonly whereorg.hamcrest.junitis used by @timtebeek in #1314 - Fix
UpdateMockWebServer*multi-rule close, lambda returns andsetHttp2ErrorCodemapping by @timtebeek in #1313 - Fix smaller JUnit 4 migration bugs (B12) by @timtebeek in #1315
- Use
VariableNameUtilsfor theExpectedExceptionToAssertThrowsexception name by @timtebeek in #1316 - Prefix
JUnitParamsRunnerToParameterizedunsupported comment withTODOby @timtebeek in #1317 - Only record rule-typed fields in the System Rules usage scan by @timtebeek in #1318
- Remove dead
assertj.ymlentries and requireSimplify*AssertJAssertionoptions by @timtebeek in #1320 - Bail out of
ReturnActualfor wildcard-typedassertThatoverloads by @timtebeek in #1324 - Recognize
@ArgumentsSources,@FieldSourceand custom sources inAddParameterizedTestAnnotationby @timtebeek in #1323 - Keep
Assertionsimports without a Kotlin counterpart inCleanupKotlinJUnit5AssertionImportsby @timtebeek in #1322 - Skip overridden methods and order implied
@MethodSourcerename inRemoveTestPrefixby @timtebeek in #1321 - Only retype local and private field
ExecutableinJUnitAssertThrowsToAssertExceptionTypeby @timtebeek in #1325 - Flag instead of removing
JRE.OTHERinRemoveJreOtherby @timtebeek in #1319 - Fix AssertJ semantics changes of item D8 by @timtebeek in #1326
Full Changelog: v3.67.0...v3.68.0
3.67.0
What's Changed
- Migrate Groovy TemporaryFolder.root property reads to the TempDir file by @timtebeek in #1304
Full Changelog: v3.66.0...v3.67.0
3.66.0
What's Changed
- OpenRewrite recipe best practices by @timtebeek in #1303
Full Changelog: v3.65.0...v3.66.0
3.65.0
Full Changelog: v3.64.0...v3.65.0
3.64.0
What's Changed
- Type the throws UpdateMockWebServer adds to an existing @AfterEach by @knutwannheden in #1298
- Narrow TypeValidation opt-outs to the checks that need them by @timtebeek in #1299
- Type the output of CloseUnclosedStaticMocks and the JMockit InOrder rewriter instead of opting out by @timtebeek in #1300
- Upgrade JUnit Pioneer to 3.x as part of the JUnit 6 migration by @sullis in #1260
- Cover more WireMock 4 breaking changes in the 3 to 4 migration by @sullis in #1258
- Raise a version property in a parent pom when the Mockito migrations change
mockito-allby @ds-xdev in #1296 - Remove two more type validation opt-outs, explain the rest by @timtebeek in #1301
- Replace the removed
classpath(byte[]...)call in TestsShouldNotBePublicTest by @knutwannheden in #1302
New Contributors
Full Changelog: v3.63.0...v3.64.0