Changes between Initial Version and Version 1 of Ticket #23729
- Timestamp:
- 2024-06-12T17:26:32+02:00 (11 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23729 – Description
initial v1 8 8 * jmockit supports "global" mocks 9 9 * We'd apparently have to do a lot of work to get mockito working properly (specifically, we'd have to fiddle with dependency injection) 10 * mockito does support thread-local mocks now (apparently), so this ''might'' be "good enough" since we really only have three threads we care about most of the time (MainApplication.worker, EDT, and the JUnit thread) 10 * mockito does support thread-local mocks now (apparently), so this ''might'' be "good enough" since we really only have three threads we care about most of the time (MainApplication.worker, EDT, and the JUnit thread). See [https://github.com/mockito/mockito/blob/main/src/main/java/org/mockito/MockedStatic.java MockedStatic]. 11 11 * jmockit supports "private" method mocks (but so does mockito + powermock; powermock isn't supported anymore though) 12 12 * We mostly need private method mocking due to some of our tests hitting UI codepaths. Maybe we should fix those? Maybe with something like `BooleanSupplier`/`IntSupplier` for answers to UI questions?