Repository navigation
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