PowerMockito: NotAMockException on a mock

前端 未结 2 707
谎友^
谎友^ 2021-02-07 18:14

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

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


        
2条回答
  •  自闭症患者
    2021-02-07 18:36

    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.

提交回复
热议问题