mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
tests: Updated ActvitiesPresenter unit tests with the new interface methods.
This commit is contained in:
parent
5998438f12
commit
9a9a4629e0
1 changed files with 3 additions and 2 deletions
|
@ -69,11 +69,12 @@ public class ActivitiesPresenterTest {
|
|||
// Repository starts retrieving activities from server
|
||||
verify(mActivitiesRepository).getActivities(eq(null), mLoadActivitiesCallbackCaptor.capture());
|
||||
// Repository returns data
|
||||
mLoadActivitiesCallbackCaptor.getValue().onActivitiesLoaded(activitiesList, mOwnCloudClient, false);
|
||||
mLoadActivitiesCallbackCaptor.getValue().onActivitiesLoaded(activitiesList,
|
||||
mOwnCloudClient, null);
|
||||
// Progress indicator is hidden
|
||||
verify(mView).setProgressIndicatorState(eq(false));
|
||||
// List of activities is shown in view.
|
||||
verify(mView).showActivites(eq(activitiesList), eq(mOwnCloudClient), eq(false));
|
||||
verify(mView).showActivites(eq(activitiesList), eq(mOwnCloudClient), eq(null));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in a new issue