novoda / rxpresso

Easy Espresso UI testing for Android applications using RxJava.
Other
363 stars 23 forks source link

Mockito based mocks #10

Closed Dorvaryn closed 9 years ago

Dorvaryn commented 9 years ago

This changes the mock backend from RxMocks to Mockito. The logic present in RxMocks to deal with event syncronisation has been ported to this repo under the class RxMocks.

This change allows us to mock non Interface repositories. It also allows us to use verify logic on the mocked repo to do some UI unit testing on cases where UI modifies data through the repository.

The usage hasn't changed much, mainly the mocks are now created using mockito and RxPresso is now created through an init method.

Closes #2