package com.moyinoluwa.makeupsearch.presentation.select;

import com.moyinoluwa.makeupsearch.presentation.select_product.SelectProductContract;
import com.moyinoluwa.makeupsearch.presentation.select_product.SelectProductPresenter;

import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;

import static org.mockito.Mockito.verify;

/**
 * Created by moyinoluwa on 1/15/17.
 */
public class SelectProductPresenterTest {

    @Mock
    SelectProductContract.View view;

    SelectProductPresenter selectProductPresenter;

    @Before
    public void setUp() throws Exception {
        MockitoAnnotations.initMocks(this);
        selectProductPresenter = new SelectProductPresenter();
        selectProductPresenter.attachView(view);
    }

    @Test
    public void selectProduct_productSelected_switchActivity() {
        selectProductPresenter.selectProduct();

        verify(view).switchActivity();
    }

}
@@ -517,24 +517,32 @@
  view;%0A%0A    
+private 
 SelectProduc
@@ -795,16 +795,199 @@
 %0A    %7D%0A%0A
+    @Test%0A    public void setTransition_transitionPerformed_switchViews() %7B%0A        selectProductPresenter.selectProduct();%0A%0A        verify(view).switchViewsAfterTransition();%0A    %7D%0A%0A
     @Tes

Update SelectProductPresenter tests