您好,我正在使用MockitoKotlin2库进行模拟,我正在尝试模拟一个最终的改造类,我如何做到这一点,它是否支持模拟最终类,请问解决方案是什么。UnlockDeviceAndroidJUnitRunner.java:42)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2145) 我正在尝试模拟的改进函数
因为在kotlin中,默认情况下每个类都是最终类,所以为了模拟最终类,我使用了支持模拟最终类的mockInline库。因为我必须同时编写单元测试和UI测试。one file was found with OS independent path 'mockito-extensions/org.mockito.plugins.MockMaker'
有没有办法使用mockIn