Bradleycorn
06/23/2021, 8:30 PMall-open
plugin, and define annotations in debug and release sourceSets so that annotated classes become open in debug builds, but final in release builds? This is the solution we’ve been using for some time, and it works, no question. But it’s not perfect, because what we really want is for the classes to only be open when running tests, but instead they are open anytime you are doing a debug build, whether for tests or otherwise. I know mockito introduced “inline-mock-maker” awhile back, and at the time it didn’t work with Robolectric. Is that still the case? Is there some other “new and improved” way to keep classes as final but allow them to be mocked in unit tests?Jeremy
06/23/2021, 8:54 PMmockk
?Bradleycorn
06/23/2021, 8:56 PMBradleycorn
06/23/2021, 8:57 PMJeremy
06/23/2021, 8:58 PM