如何用powermockito检查单元测试?

时间:2018-02-20 06:34:42

标签: android testing powermockito

Android如何使用powermockito检查单元测试

public void updateProfile(final UserLogin updateUser) {
    profileModelImple.updateUser(updateUser)
            .subscribeOn(Schedulers.newThread())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(new Observer<Object>() {

                @Override
                public void onCompleted () {

                }

                @Override
                public void onError (Throwable e) {
                    Timber.e("authenticationModel -> login " + e);
                    EventBus.getDefault().post(null);
                }

                @Override
                public void onNext (Object user) {
                }
            });
}

0 个答案:

没有答案