Repository navigation
v3.48.0
What's Changed
- Add junit-jupiter when only junit.framework.TestCase is used by @manduinca in #1117
- Replace PowerMockRunner with the lenient MockitoJUnitRunner.Silent by @timtebeek in #1131
- Skip MockitoWhenOnStaticToMockStatic for tests still on PowerMock by @timtebeek in #1132
- Remove PowerMockRule and remaining PowerMock calls and annotations by @timtebeek in #1133
- Reflect on the declaring class when migrating Whitebox calls by @timtebeek in #1134
- Mockito1to3Migration: rename anyXOf matchers called through org.mockito.Mockito by @mohitduhan19 in #1130
- Migrate Whitebox calls nested in expressions and named by constants by @timtebeek in #1135
- Replace parent-managed PowerMock with the Mockito artifact its modules use by @timtebeek in #1138
- Keep migrated static mocks scoped like PowerMock's by @timtebeek in #1136
- Add WireMock 3 to 4 migration recipe by @sullis in #1122
- Keep whenNew stubbing and scope when migrating to construction mocks by @timtebeek in #1137
- Preserve parameterized toString assertions by @martinfrancois in #1094
- Leave repositories with unmigratable PowerMock usage on PowerMock and flag that usage by @timtebeek in #1140
- Preserve element-specific assertions in sequenced collections by @martinfrancois in #1095
- Upgrade an explicit mockito-core along with the Mockito that replaces PowerMock by @timtebeek in #1141
- Flag Whitebox calls when the class declaring the accessed member is unknown by @timtebeek in #1142
- PowerMock → Mockito migration enhancements by @sambsnyd in #1143
- Cache GradleUseJunitJupiter's parsed template on the root cursor by @timtebeek in #1147
- Add JUnit 4 where the PowerMock JUnit 4 module provided it by @timtebeek in #1151
- Keep imports that migrated PowerMock code still needs by @timtebeek in #1149
- Reuse an existing MockedStatic for static stubbing in setup methods by @timtebeek in #1150
- Disable unsupported PowerMock tests before migrating them by @timtebeek in #1148
RemoveDoNothingForDefaultMocksremoves imports only the deleted stub used by @jkschneider in #1154MockitoJUnitToMockitoExtensionmigrates onlyMockitoRulefields annotated with@Ruleby @jkschneider in #1155UseMockitoExtensionaddsmockito-junit-jupiterfor migratedMockitoRulefields by @jkschneider in #1156UseMockitoExtensionaddsmockito-junit-jupiterat the module's Mockito version by @jkschneider in #1157AddHamcrestIfUsedadds Hamcrest for any Hamcrest use, including matchers theExpectedExceptionmigration generates by @jkschneider in #1158AddJupiterDependenciesdeclares the Jupiter API directly in Maven modules that rundependency:analyzeby @jkschneider in #1159- The JUnit 4 migration adds
@Nestedonly inside@RunWith(Enclosed.class)suites by @jkschneider in #1160 - The JUnit 4 migration keeps JUnit 4 on the classpath of modules that use Guava testlib by @jkschneider in #1161
- MigrateJUnitTestCase: leave TestCase subclasses overriding run(TestResult) untouched by @mohitduhan19 in #1168
- Migrate System Rules to System Stubs and JUnit Pioneer by @timtebeek in #1152
JUnit5to6MigrationrenamesExtensionContext.Store.getOrComputeIfAbsenttocomputeIfAbsentby @timtebeek in #1171- Exclude a transitive mockito-all when replacing PowerMock by @jkschneider in #1172
- Leave a declared JUnit 4 at its version when replacing PowerMock by @jkschneider in #1173
- Place AssertJ descriptions and failure messages before the assertion by @timtebeek in #1170
- Skip JUnit 6 build changes in modules that use TestNG by @timtebeek in #1177
- ReplacePowerMockito: fix duplicate and shadowed Mockito dependencies by @sambsnyd in #1176
New Contributors
- @manduinca made their first contribution in #1117
- @mohitduhan19 made their first contribution in #1130
Full Changelog: v3.47.0...v3.48.0