@Test public void testGetGreeting_doesNotEmit_whenNoLanguageSet() { TestSubscriber<String> testSubscriber = new TestSubscriber<>(); mMainViewModel.getObservableGreeting().subscribe(testSubscriber); testSubscriber.assertNoErrors(); testSubscriber.assertNoValues(); }
@NonNull public Observable<String> getObservableGreeting() { return mObservableSelectedLanguage .observeOn(mSchedulerProvider.computation()) .map(Language::getCode) .flatMap(mDataModel::getObservableGreetingByLanguageCode); }
EmployeeMvvmViewModel { @NonNull public Observable<String> getObservableGreeting() { return mObservableSelectedLanguage .observeOn(mSchedulerProvider.computation()) .map(Language::getCode) .flatMap(mDataModel::getObservableGreetingByLanguageCode); } }
EmployeeMvvmViewModel { @NonNull public Observable<String> getObservableGreeting() { return mObservableSelectedLanguage .observeOn(mSchedulerProvider.computation()) .map(Language::getCode) .flatMap(mDataModel::getObservableGreetingByLanguageCode); } EmployeeMvvmViewModel(@NonNull final EmployeeIDataModel dataModel,
                         @NonNull final ISchedulerProvider schedulerProvider); }
EmployeeMvvmViewModel { @NonNull public Observable<String> getObservableGreeting() { return mObservableSelectedLanguage .observeOn(mSchedulerProvider.computation()) .map(Language::getCode) .flatMap(mDataModel::getObservableGreetingByLanguageCode); } EmployeeMvvmViewModel(@NonNull final EmployeeIDataModel dataModel,
                         @NonNull final ISchedulerProvider schedulerProvider); void saveRxFBemployee(); @NonNull Observable<String> getObservableFob(); Observable<List<Employee>> getObservableEmployees(); Observable<DataSnapshot> getObservableFBabsences(); Observable<DataSnapshot> getObservableFBusers(); Observable<List<Employee>> getObservableFBusersEmployee(); void getBySpinnerEmloyee(String[] conditionsx); @NonNull Observable<List<Employee>> getObservableFBusersEmployeeSpinner(); void saveEditEmloyee(@NonNull final Employee employee, String namexx, String oscxx,
                                              String icoxx, String typxx, String uswxx); @NonNull Observable<String> getObservableKeyEditedEmployee(); @NonNull Observable<String> getObservableGreeting(); @NonNull Observable<List<Language>> getObservableSupportedLanguages(); void emitlanguageSelected(@NonNull final Language language); int getValue(@NonNull int xxx); }
EmployeeMvvmViewModel { @NonNull public Observable<String> getObservableGreeting() { return mObservableSelectedLanguage .observeOn(mSchedulerProvider.computation()) .map(Language::getCode) .flatMap(mDataModel::getObservableGreetingByLanguageCode); } EmployeeMvvmViewModel(@NonNull final EmployeeIDataModel dataModel,
                         @NonNull final ISchedulerProvider schedulerProvider); void saveRxFBemployee(); @NonNull Observable<String> getObservableFob(); Observable<List<Employee>> getObservableEmployees(); Observable<DataSnapshot> getObservableFBabsences(); Observable<DataSnapshot> getObservableFBusers(); Observable<List<Employee>> getObservableFBusersEmployee(); void getBySpinnerEmloyee(String[] conditionsx); @NonNull Observable<List<Employee>> getObservableFBusersEmployeeSpinner(); void saveEditEmloyee(@NonNull final Employee employee, String namexx, String oscxx,
                                              String icoxx, String typxx, String uswxx); @NonNull Observable<String> getObservableKeyEditedEmployee(); @NonNull Observable<String> getObservableGreeting(); @NonNull Observable<List<Language>> getObservableSupportedLanguages(); void emitlanguageSelected(@NonNull final Language language); int getValue(@NonNull int xxx);  }