Instantly share code, notes, and snippets.

What would you like to do?
DealPresenterTestV2 - TP article
public class DealPresenterTest {
@Rule public MockitoRule mockitoRule = MockitoJUnit.rule();
@Mock DealUtil dealUtil;
@Mock DealApiClient dealApiClient;
@Mock WishlistManager wishlistManager;
private DealViewStateModel dealViewStateModel = new DealViewStateModel();
private DealPresenter dealPresenterUnderTest;
public void setUp() {
dealPresenterUnderTest = new DealPresenter(dealUtil, dealApiClient, wishlistManager, dealViewStateModel);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment