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();
    }

}
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;

    private SelectProductPresenter selectProductPresenter;

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

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

        verify(view).switchViewsAfterTransition();
    }

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

        verify(view).switchActivity();
    }

}
Update SelectProductPresenter tests