@Test public void testAttach() throws Exception { assertThat(tested.collectionView).isNotNull(); verify(mockedDataProvider).fetch(eq(1)); verify(mockedView).showLoading(); }
void attach(CollectionView collectionView) { this.collectionView = collectionView; onLoad(); }
CollectionViewPresenter { void attach(CollectionView collectionView) { this.collectionView = collectionView; onLoad(); } }
CollectionViewPresenter { void attach(CollectionView collectionView) { this.collectionView = collectionView; onLoad(); } CollectionViewPresenter(@NonNull DataProvider<?> dataProvider); }
CollectionViewPresenter { void attach(CollectionView collectionView) { this.collectionView = collectionView; onLoad(); } CollectionViewPresenter(@NonNull DataProvider<?> dataProvider);  }
CollectionViewPresenter { void attach(CollectionView collectionView) { this.collectionView = collectionView; onLoad(); } CollectionViewPresenter(@NonNull DataProvider<?> dataProvider);   }