SimpleTestCursor robolectric 3.0— compilation issue

前端 未结 1 1345
春和景丽
春和景丽 2021-01-25 02:26

I am trying to test the cursor in my app.

But for the following import I get the error message-- cannot resolve symbol tester. I am using Robolectric 3.0. Why the impor

相关标签:
1条回答
  • 2021-01-25 03:02

    SimpleTestCursor has been replaced by RoboCursor in version 3 of Robolectric.

    Have a look at robolectric/robolectric-shadows/shadows-core/src/main/java/org/robolectric/fakes/RoboCursor.java and robolectric/robolectric/src/test/java/org/robolectric/fakes/RoboCursorTest.java.

    0 讨论(0)
提交回复
热议问题