jeudi 10 décembre 2015

CRUD operation testing in Android

I developed one android app and this app contains a service responsible for doing CRUD operations. Several months ago I added tests for CRUD using simple AndroidTestCase and everything worked fine until new test tools were added to SDK. So, I decided to rewrite tests using new classes and faced with the problem that there was no way to write tests using testing SQLite database as it was before.

Could you help me and write simple example of how to write CRUD test in android app? I'm interested in writing integration tests using real SQLite database (in test environment) instead of Mock objects provided by JUnit.

Aucun commentaire:

Enregistrer un commentaire