lundi 21 mars 2016

HOWTO stub Realm Model Unit Tests in Java

i'm trying to get some unit tests going for my Realm models. a testing reference exists, but i unfortunately do not follow it.

it uses many other deps (mockito, powermock, etc) that i dont have available, would-prefer-not-to-use, and dont-care-to-learn-if-i-dont-have-to, of course only if possible. is there a way i can test without mocking at all? the imports alone are ~40 lines long. i just want to test some methods on my model, maybe do one save and fetch. a barebones example would be super helpful!

i do use gradle, but the provided gradle file doesn't show the adding of the dependencies required in the example (forgive me if they do, but from what i see, many of the plugin and compile resources aren't immediately available).

thanks all! respecfully, cdaringe

Aucun commentaire:

Enregistrer un commentaire