Skip to content

3.50.0

Choose a tag to compare

@code-genome-project-ci code-genome-project-ci released this 27 Oct 02:12
55b8562

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.filter instead of mapping elements to null by @timtebeek in #1203
  • Only add the Mockito type import when spying statically by @timtebeek in #1204
  • Upgrade to Gradle 9.8.2 by @jkschneider in #1206
  • Always import the class mocked by MockitoWhenOnStaticToMockStatic by @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 AssertEqualsIntegralDeltaToAssertEquals by @timtebeek in #1212
  • Track Hamcrest not(..) negation locally instead of on the ExecutionContext by @timtebeek in #1214
  • Only adopt hasSeconds for isEqualTo in AdoptAssertJDurationAssertions by @timtebeek in #1215
  • Leave tests that call assumptions alone in TestsShouldIncludeAssertions by @timtebeek in #1213
  • Keep JUnit deltas when converting assertEquals, assertNotEquals and assertArrayEquals to AssertJ by @timtebeek in #1216
  • Only turn the WireMockRule field's @Rule into @RegisterExtension in UseWiremockExtension by @timtebeek in #1218
  • Keep early returns in TestMethodsShouldBeVoid and KotlinTestMethodsShouldReturnUnit by @timtebeek in #1217
  • Use JavaFileChecker preconditions instead of isAcceptable overrides by @timtebeek in #1219
  • Only convert Java sources in UseAssertSame by @timtebeek in #1223
  • Only convert assertInstanceOf used as a statement in JUnitAssertInstanceOfToAssertThat by @timtebeek in #1222
  • Only remove a direct PowerMockTestCase or PowerMockConfiguration superclass in RemovePowerMockClassExtensions by @timtebeek in #1224
  • Only replace assertNotEquals(false, <boolean>) when the second argument is a primitive boolean by @timtebeek in #1220
  • Only migrate the two-argument InvocationInterceptor.interceptDynamicTest in RemoveInterceptDynamicTest by @timtebeek in #1221
  • Hoist matchers created per visit to private static final constants by @timtebeek in #1225
  • Use the Comments trait and ListUtils/reduce instead of hand-built comments and manual list handling by @timtebeek in #1226
  • Add UsesMethod and UsesType preconditions 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 @Disabled tests, //noinspection lines and restating comments by @timtebeek in #1233
  • Use MethodMatcher, AnnotationMatcher and 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-contained JavaTemplates by @timtebeek in #1232
  • Support Gradle Kotlin DSL in GradleUseJunitJupiter and AddJupiterDependencies by @timtebeek in #1238
  • Create a unique folder for no-argument TemporaryFolder#newFolder() by @timtebeek in #1237
  • Skip Hamcrest matchers that take nested matchers in HamcrestMatcherToAssertJ by @timtebeek in #1236
  • Add junit-jupiter-migrationsupport where the JUnit 4 migration uses it, and only remove it once unused by @timtebeek in #1239
  • Keep the message overloads of TestNG assertThrows/expectThrows in TestNgAssertThrowsToAssertThat by @timtebeek in #1240
  • Keep isNotEmpty() and isNotNull() guards in SimplifyRedundantAssertJChains when the next assertion passes without them by @timtebeek in #1241
  • Only replace @CsvSource values that CSV parsing leaves unchanged in CsvSourceToValueSource by @timtebeek in #1244
  • Only use hasSameSizeAs in SimplifyHasSizeAssertion when the assert type has a matching overload by @timtebeek in #1243
  • Only collapse the JRE range of the visited method in MinimumJreConditions by @timtebeek in #1242
  • Preserve comments before collapsed AssertJ chains by @martinfrancois in #1096
  • Respect composed JUnit test templates by @martinfrancois in #1093
  • Keep @Timeout attributes and only convert whole minutes in ImplausibleTimeoutToMinutes by @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

Full Changelog: v3.49.1...v3.50.0