Testing SQLite database in Robolectric

后端 未结 3 1353
无人及你
无人及你 2020-12-14 19:27

I\'m trying to test a simple SQLite database using Robolectric in my Android application. I\'m putting in some values, but when reading them back 0 rows are returned.

<
3条回答
  •  一整个雨季
    2020-12-14 20:00

    Robolectric 2.3 uses a real implementation of SQLite instead of a collection of shadows and fakes. Tests can now be written to verify real database behavior.

提交回复
热议问题