@@ -0,0 +1,2188 @@
+package com.stolets.rxdiffutil.diffrequest;%0A%0Aimport android.annotation.SuppressLint;%0Aimport android.app.Activity;%0Aimport android.app.FragmentManager;%0Aimport android.support.v7.util.DiffUtil;%0A%0Aimport com.stolets.rxdiffutil.BaseTest;%0Aimport com.stolets.rxdiffutil.RxRequestManager;%0Aimport com.stolets.rxdiffutil.util.MockitoUtils;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mockito.Mock;%0A%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.mockito.ArgumentMatchers.anyString;%0Aimport static org.mockito.BDDMockito.given;%0A%0Apublic class DiffRequestBuilderTest extends BaseTest %7B%0A    private static final String TEST_TAG = %22TEST_TAG%22;%0A    private DiffUtil.Callback mCallback = MockitoUtils.getMockedDefaultDiffCallback();%0A    private DiffRequestBuilder mBuilder;%0A%0A    @Mock%0A    Activity mActivity;%0A%0A    @Mock%0A    FragmentManager mFragmentManager;%0A%0A    @Mock%0A    DiffRequestManagerFragment mDiffRequestManagerFragment;%0A%0A    @Mock%0A    DiffRequestManager mDiffRequestManager;%0A%0A    @Before%0A    public void setup() %7B%0A        mBuilder = new DiffRequestBuilder(mActivity, mCallback);%0A    %7D%0A%0A    @Test%0A    public void detectMoves_SetsDetectMovesFlag() %7B%0A        // Given a builder%0A%0A        // When%0A        mBuilder.detectMoves(true);%0A%0A        // Then%0A        assertThat(mBuilder.isDetectingMoves(), is(true));%0A    %7D%0A%0A    @Test%0A    public void tag_SetsRequestTag() %7B%0A        // Given a builder%0A%0A        // When%0A        mBuilder.tag(TEST_TAG);%0A%0A        // Then%0A        assertThat(mBuilder.getTag(), is(TEST_TAG));%0A    %7D%0A%0A    @SuppressLint(%22CommitTransaction%22)%0A    @Test%0A    public void build_ReturnsRequestManagerWithTag() %7B%0A        // Given%0A        mBuilder.tag(TEST_TAG);%0A%0A        given(mDiffRequestManagerFragment.getDiffRequestManager()).willReturn(mDiffRequestManager);%0A        given(mFragmentManager.findFragmentByTag(anyString())).willReturn(mDiffRequestManagerFragment);%0A        given(mActivity.getFragmentManager()).willReturn(mFragmentManager);%0A%0A        // When%0A        final RxRequestManager rxRequestManager = mBuilder.build();%0A%0A        // Then%0A        assertThat(rxRequestManager.getTag(), is(TEST_TAG));%0A    %7D%0A%7D%0A

Add DiffRequestBuilder unit tests