Repository navigation
Releases
Releases · openrewrite/rewrite-testing-frameworks
3.55.0
What's Changed
- Call
superfrom JUnit 3setUpandtearDownoverrides by @Jammy-Louie in #1257 - Stop adding junit-platform-surefire-provider in UpgradeSurefirePlugin, and never downgrade Surefire by @timtebeek in #1279
- Remove withLocalCompose(true) in the Testcontainers 2 migration by @timtebeek in #1281
- Upgrade Byte Buddy along with Mockito where a BOM manages it by @krlittle in #1278
- Remove BrowserWebDriverContainer capabilities in the Testcontainers 2 migration when an image is given by @timtebeek in #1282
- Avoid a checked IOException in field initializers in TemporaryFolderToTempDir by @timtebeek in #1280
- Constrain guava past CVE-2026-102554 by @jkschneider in #1283
- Raise Byte Buddy only for a Mockito that needs the minimum by @knutwannheden in #1285
- Fix thread-safety of several recipes by @greg-at-moderne in #1284
New Contributors
Full Changelog: v3.53.0...v3.55.0
3.54.0
What's Changed
- Call
superfrom JUnit 3setUpandtearDownoverrides by @Jammy-Louie in #1257 - Stop adding junit-platform-surefire-provider in UpgradeSurefirePlugin, and never downgrade Surefire by @timtebeek in #1279
- Remove withLocalCompose(true) in the Testcontainers 2 migration by @timtebeek in #1281
- Upgrade Byte Buddy along with Mockito where a BOM manages it by @krlittle in #1278
- Remove BrowserWebDriverContainer capabilities in the Testcontainers 2 migration when an image is given by @timtebeek in #1282
- Avoid a checked IOException in field initializers in TemporaryFolderToTempDir by @timtebeek in #1280
- Constrain guava past CVE-2026-102554 by @jkschneider in #1283
- Raise Byte Buddy only for a Mockito that needs the minimum by @knutwannheden in #1285
- Fix thread-safety of several recipes by @greg-at-moderne in #1284
New Contributors
Full Changelog: v3.53.0...v3.54.0
3.53.0
What's Changed
- Upgrade existing Platform and Vintage dependencies in the JUnit 6 migration by @jkschneider in #1261
- Preserve Kafka image provider during Testcontainers 2 migration by @jkschneider in #1262
Full Changelog: v3.52.0...v3.53.0
3.52.0
What's Changed
- Move parser-only test jars to the test type table by @timtebeek in #1253
Full Changelog: v3.51.0...v3.52.0
3.51.0
What's Changed
- Preserve legacy Hamcrest class matcher semantics in AssertJ migrations by @jkschneider in #1250
- Retain opaque Hamcrest matcher assertions without crashing by @jkschneider in #1251
- Preserve Mockito initialization for unmanaged targets and shared handles by @jkschneider in #1249
- Compare types with TypeUtils.isOfType instead of JavaType.equals by @knutwannheden in #1252
- Keep AssertToAssertions output stable after rewrite qualifies shadowed calls by @timtebeek in #1254
- Pin bare mockito-core type table lookups to a single Mockito major by @timtebeek in #1255
Full Changelog: v3.50.0...v3.51.0
3.50.0
What's Changed
- Fixes Mockito getting PowerMock's version from parent pom properties and Gradle version variables by @sambsnyd in #1198
- Keep the method type in sync with the return type in ConvertToRawType by @knutwannheden in #1202
- Use
ListUtils.filterinstead of mapping elements tonullby @timtebeek in #1203 - Only add the
Mockitotype import when spying statically by @timtebeek in #1204 - Upgrade to Gradle 9.8.2 by @jkschneider in #1206
- Always import the class mocked by
MockitoWhenOnStaticToMockStaticby @Jammy-Louie in #1208 - Let rewriteRun verify the JUnit 4 to 5 migration settles by @knutwannheden in #1209
- Mockito, JMockit and JUnit recipes remove or type the imports they leave unused by @knutwannheden in #1210
- Only drop a literal zero delta in
AssertEqualsIntegralDeltaToAssertEqualsby @timtebeek in #1212 - Track Hamcrest
not(..)negation locally instead of on theExecutionContextby @timtebeek in #1214 - Only adopt
hasSecondsforisEqualToinAdoptAssertJDurationAssertionsby @timtebeek in #1215 - Leave tests that call assumptions alone in
TestsShouldIncludeAssertionsby @timtebeek in #1213 - Keep JUnit deltas when converting
assertEquals,assertNotEqualsandassertArrayEqualsto AssertJ by @timtebeek in #1216 - Only turn the
WireMockRulefield's@Ruleinto@RegisterExtensioninUseWiremockExtensionby @timtebeek in #1218 - Keep early returns in
TestMethodsShouldBeVoidandKotlinTestMethodsShouldReturnUnitby @timtebeek in #1217 - Use
JavaFileCheckerpreconditions instead ofisAcceptableoverrides by @timtebeek in #1219 - Only convert Java sources in
UseAssertSameby @timtebeek in #1223 - Only convert
assertInstanceOfused as a statement inJUnitAssertInstanceOfToAssertThatby @timtebeek in #1222 - Only remove a direct
PowerMockTestCaseorPowerMockConfigurationsuperclass inRemovePowerMockClassExtensionsby @timtebeek in #1224 - Only replace
assertNotEquals(false, <boolean>)when the second argument is a primitivebooleanby @timtebeek in #1220 - Only migrate the two-argument
InvocationInterceptor.interceptDynamicTestinRemoveInterceptDynamicTestby @timtebeek in #1221 - Hoist matchers created per visit to
private static finalconstants by @timtebeek in #1225 - Use the
Commentstrait andListUtils/reduceinstead of hand-built comments and manual list handling by @timtebeek in #1226 - Add
UsesMethodandUsesTypepreconditions to recipes that visit every file by @timtebeek in #1227 - Fix typos, over-claiming and inconsistent recipe display names and descriptions by @timtebeek in #1231
- Remove stale
@Disabledtests,//noinspectionlines and restating comments by @timtebeek in #1233 - Use
MethodMatcher,AnnotationMatcherand variable types instead of name strings by @timtebeek in #1228 - Align test names with recipes, group no-change tests and tidy classpath entries and YAML by @timtebeek in #1235
- Drop forced
maybeAddImport(.., false)where templates already attribute the added types by @timtebeek in #1234 - Run unconditional sub-recipes from
getRecipeList()and keep cleanups local to the changed element by @timtebeek in #1230 - Tighten preconditions that were too broad or too narrow by @timtebeek in #1229
- Drop
contextSensitive()from self-containedJavaTemplates by @timtebeek in #1232 - Support Gradle Kotlin DSL in
GradleUseJunitJupiterandAddJupiterDependenciesby @timtebeek in #1238 - Create a unique folder for no-argument
TemporaryFolder#newFolder()by @timtebeek in #1237 - Skip Hamcrest matchers that take nested matchers in
HamcrestMatcherToAssertJby @timtebeek in #1236 - Add
junit-jupiter-migrationsupportwhere the JUnit 4 migration uses it, and only remove it once unused by @timtebeek in #1239 - Keep the message overloads of TestNG
assertThrows/expectThrowsinTestNgAssertThrowsToAssertThatby @timtebeek in #1240 - Keep
isNotEmpty()andisNotNull()guards inSimplifyRedundantAssertJChainswhen the next assertion passes without them by @timtebeek in #1241 - Only replace
@CsvSourcevalues that CSV parsing leaves unchanged inCsvSourceToValueSourceby @timtebeek in #1244 - Only use
hasSameSizeAsinSimplifyHasSizeAssertionwhen the assert type has a matching overload by @timtebeek in #1243 - Only collapse the JRE range of the visited method in
MinimumJreConditionsby @timtebeek in #1242 - Preserve comments before collapsed AssertJ chains by @martinfrancois in #1096
- Respect composed JUnit test templates by @martinfrancois in #1093
- Keep
@Timeoutattributes and only convert whole minutes inImplausibleTimeoutToMinutesby @tashen247 in #1245 - Find test classes without tests by @Jammy-Louie in #1205
- Preserve inherited lifecycle method visibility in TestsShouldNotBePublic by @jkschneider in #1247
- Preserve public test fixtures referenced from other packages by @jkschneider in #1248
New Contributors
- @tashen247 made their first contribution in #1245
Full Changelog: v3.49.1...v3.50.0
v3.49.1
What's Changed
- WireMock 4 migration: move Jetty EE10 to EE11 and bump to 4.0.0-beta.40 by @sullis in #1184
- Add mockito-junit-jupiter when PowerMockRunner becomes MockitoExtension by @timtebeek in #1185
- Override a Spring Boot BOM-managed Mockito when replacing PowerMock by @timtebeek in #1186
- Keep WireMockRule used as a server a WireMockServer; port() to getPort() by @timtebeek in #1187
- Expect blank line before static imports after whenNew migration by @timtebeek in #1192
- Test on Java 21 and 25 through additional_test_java_versions by @timtebeek in #1194
- Match Mockito and JUnit code by type, and format only what changes by @jkschneider in #1195
- Give the when(instance) call built inside the replaced call ids of its own by @jkschneider in #1196
- Declare what templates name and build trees as the parser does by @jkschneider in #1197
- Pin Datafaker to 1.x when migrating from Java Faker by @timtebeek in #1199
- Bump wiremock-core parser classpath and keep the class prefix when removing PowerMock runners by @timtebeek in #1201
Full Changelog: v3.49.0...v3.49.1
3.49.0
What's Changed
- Run the full Cucumber-JVM 7.x upgrade from
JUnit4to5Migrationby @timtebeek in #1181 - Upgrade WireMock to the latest 2.x in JUnit4to5Migration by @timtebeek in #1182
Full Changelog: v3.48.2...v3.49.0
3.48.2
What's Changed
- More efficient regexp for powermock unused Maven property by @greg-at-moderne in #1179
- Junit5MigrationTest to avoid flakiness by sorting sources by @greg-at-moderne in #1180
Full Changelog: v3.48.1...v3.48.2
v3.48.1
What's Changed
- Run the Cucumber JUnit Platform suite migration from
JUnit4to5Migrationby @timtebeek in #1178
Full Changelog: v3.48.0...v3.48.1