com.google.android.agera.rvadapter.RepositoryAdapter.repositoryAdapter

Here are the examples of the java api class com.google.android.agera.rvadapter.RepositoryAdapter.repositoryAdapter taken from open source projects.

1. RepositoryAdapterTest#setUp()

Project: agera
Source File: RepositoryAdapterTest.java
View license
@Before
public void setUp() {
    initMocks(this);
    updateDispatcher = updateDispatcher();
    repository = mutableRepository(REPOSITORY_ITEM);
    secondRepository = repository(REPOSITORY_LIST);
    when(activity.getApplication()).thenReturn(application);
    when(viewGroup.getContext()).thenReturn(context);
    when(context.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).thenReturn(layoutInflater);
    when(layoutInflater.inflate(LAYOUT_ID, viewGroup, false)).thenReturn(view);
    when(repositoryPresenter.getItemCount(REPOSITORY_ITEM)).thenReturn(1);
    when(secondRepositoryPresenter.getItemCount(REPOSITORY_LIST)).thenReturn(3);
    repositoryAdapter = repositoryAdapter().add(repository, repositoryPresenter).add(secondRepository, secondRepositoryPresenter).addAdditionalObservable(updateDispatcher).build();
}