You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For tests, Schedulers.immediate() is used instead of Schedulers.io() and Schedulers.mainThread(). It makes impossible to test that repoListPresenter.onSearchButtonClick() doesn't call view.hideLoading() until it loads result from the model.
The current RepoListPresenterTest.testShowLoading() show look like this:
@Test
public void testShowLoading() {
repoListPresenter.onSearchButtonClick();
verify(mockView).showLoading();
verify(mockView, never()).hideLoading();
}
But it's impossible now. Invocation of repoListPresenter.onSearchButtonClick() is blocking and will trigger view.hideLoading() upon completion.
The text was updated successfully, but these errors were encountered:
Суббота, 26 ноября 2016, 14:15 +04:00 от Artem ***@***.***>:
For tests, Schedulers.immediate() is used instead of Schedulers.io() and Schedulers.mainThread(). It makes impossible to test that repoListPresenter.onSearchButtonClick() doesn't call view.hideLoading() until it loads result from the model.
The current RepoListPresenterTest.testShowLoading() show look like this:
@test
public void testShowLoading() {
repoListPresenter.onSearchButtonClick();
verify(mockView).showLoading();
verify(mockView, never()).hideLoading();
}
But it's impossible now. Invocation of repoListPresenter.onSearchButtonClick() is blocking and will trigger view.hideLoading() upon completion.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub , or mute the thread .
---------------------------------------------------------------
Мельников Андрей
For tests, Schedulers.immediate() is used instead of Schedulers.io() and Schedulers.mainThread(). It makes impossible to test that repoListPresenter.onSearchButtonClick() doesn't call view.hideLoading() until it loads result from the model.
The current RepoListPresenterTest.testShowLoading() show look like this:
But it's impossible now. Invocation of repoListPresenter.onSearchButtonClick() is blocking and will trigger view.hideLoading() upon completion.
The text was updated successfully, but these errors were encountered: