Search in sources :

Example 1 with TestSchedulerProvider

use of com.mindorks.framework.mvp.utils.rx.TestSchedulerProvider in project android-mvp-architecture by MindorksOpenSource.

the class LoginPresenterTest method setUp.

@Before
public void setUp() throws Exception {
    CompositeDisposable compositeDisposable = new CompositeDisposable();
    mTestScheduler = new TestScheduler();
    TestSchedulerProvider testSchedulerProvider = new TestSchedulerProvider(mTestScheduler);
    mLoginPresenter = new LoginPresenter<>(mMockDataManager, testSchedulerProvider, compositeDisposable);
    mLoginPresenter.onAttach(mMockLoginMvpView);
}
Also used : TestSchedulerProvider(com.mindorks.framework.mvp.utils.rx.TestSchedulerProvider) TestScheduler(io.reactivex.schedulers.TestScheduler) CompositeDisposable(io.reactivex.disposables.CompositeDisposable) Before(org.junit.Before)

Aggregations

TestSchedulerProvider (com.mindorks.framework.mvp.utils.rx.TestSchedulerProvider)1 CompositeDisposable (io.reactivex.disposables.CompositeDisposable)1 TestScheduler (io.reactivex.schedulers.TestScheduler)1 Before (org.junit.Before)1