Skip to content Skip to sidebar Skip to footer

Simpletestcursor Robolectric 3.0-- Compilation Issue

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 import is not re

Solution 1:

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.

Post a Comment for "Simpletestcursor Robolectric 3.0-- Compilation Issue"