@Test public void displayableItemsGoIntoLiveDataWhenInteractorEmitsCreditDrafts() throws Exception { List<DisplayableItem> displayableItems = Collections.singletonList(Mockito.mock(DisplayableItem.class)); List<CreditDraft> creditDrafts = Collections.singletonList(Mockito.mock(CreditDraft.class)); arrangeBuilder.withMappedDisplayableItems(displayableItems) .interactorEmitsCreditDrafts(creditDrafts); assertThat(viewModel.getCreditListLiveData().getValue()).isEqualTo(displayableItems); }
@NonNull LiveData<List<DisplayableItem>> getCreditListLiveData() { return creditListLiveData; }
CreditDashboardViewModel extends ViewModel { @NonNull LiveData<List<DisplayableItem>> getCreditListLiveData() { return creditListLiveData; } }
CreditDashboardViewModel extends ViewModel { @NonNull LiveData<List<DisplayableItem>> getCreditListLiveData() { return creditListLiveData; } @Inject  CreditDashboardViewModel(@NonNull final RetrieveCreditDraftList retrieveCreditDraftList,
                             @NonNull final CreditDisplayableItemMapper creditDisplayableItemMapper); }
CreditDashboardViewModel extends ViewModel { @NonNull LiveData<List<DisplayableItem>> getCreditListLiveData() { return creditListLiveData; } @Inject  CreditDashboardViewModel(@NonNull final RetrieveCreditDraftList retrieveCreditDraftList,
                             @NonNull final CreditDisplayableItemMapper creditDisplayableItemMapper);  }
CreditDashboardViewModel extends ViewModel { @NonNull LiveData<List<DisplayableItem>> getCreditListLiveData() { return creditListLiveData; } @Inject  CreditDashboardViewModel(@NonNull final RetrieveCreditDraftList retrieveCreditDraftList,
                             @NonNull final CreditDisplayableItemMapper creditDisplayableItemMapper);   }