PowerMockito: NotAMockException on a mock

前端 未结 2 2046
离开以前
离开以前 2021-02-07 18:03

Bit of a complicated setup. Robolectric, PowerMockito rule-based config.

@RunWith(RobolectricGradleTestRunner.class)
@Config(constants = BuildConfig.class, sd         


        
2条回答
  •  一生所求
    2021-02-07 18:47

    I ran into this problem too. There is actually an issue on the PowerMock project: https://github.com/jayway/powermock/issues/593

    But no comments from any of the powermock developers.

提交回复
热议问题