@@ -0,0 +1,2228 @@
+package com.stolets.rxdiffutil.diffrequest;%0A%0Aimport android.support.v7.util.DiffUtil;%0A%0Aimport com.stolets.rxdiffutil.BaseTest;%0Aimport com.stolets.rxdiffutil.DefaultDiffCallback;%0Aimport com.stolets.rxdiffutil.RxDiffResult;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mockito.Mock;%0A%0Aimport io.reactivex.Single;%0Aimport io.reactivex.observers.TestObserver;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.notNullValue;%0Aimport static org.hamcrest.Matchers.nullValue;%0Aimport static org.mockito.Mockito.mock;%0A%0Apublic class DiffRequestManagerWrapperTest extends BaseTest %7B%0A    private static final String TEST_TAG = %22TEST_TAG%22;%0A    private DiffRequestManager mDiffRequestManager;%0A%0A    @Mock%0A    DefaultDiffCallback mDefaultDiffCallback;%0A%0A    @Before%0A    public void setup() %7B%0A        mDiffRequestManager = new DiffRequestManager();%0A    %7D%0A%0A    @Test%0A    public void calculate_WhenDefaultDiffCallbackSet_ReturnsNull() %7B%0A        // Given%0A        final DiffRequest diffRequest = new DiffRequest(true, TEST_TAG, mDefaultDiffCallback);%0A        mDiffRequestManager.addPendingRequest(diffRequest);%0A%0A        final DiffRequestManagerWrapper diffRequestManagerWrapper = new DiffRequestManagerWrapper(mDiffRequestManager, TEST_TAG);%0A%0A        // When%0A        final Single%3CRxDiffResult%3E single = diffRequestManagerWrapper.calculate();%0A%0A        // Then%0A        assertThat(single, nullValue());%0A    %7D%0A%0A    @Test%0A    public void calculate_WhenDefaultDiffCallbackNotSet_ReturnsSingle() %7B%0A        // Given%0A        final DiffUtil.Callback callback = mock(DiffUtil.Callback.class);%0A        final DiffRequest diffRequest = new DiffRequest(true, TEST_TAG, callback);%0A        mDiffRequestManager.addPendingRequest(diffRequest);%0A%0A        final DiffRequestManagerWrapper diffRequestManagerWrapper = new DiffRequestManagerWrapper(mDiffRequestManager, TEST_TAG);%0A%0A        // When%0A        final Single%3CRxDiffResult%3E single = diffRequestManagerWrapper.calculate();%0A%0A        assertThat(single, notNullValue());%0A%0A        final TestObserver%3CRxDiffResult%3E testObserver = new TestObserver%3C%3E();%0A        assert single != null;%0A        single.subscribe(testObserver);%0A%0A        testObserver.assertNoErrors();%0A    %7D%0A%7D%0A

Add DiffRequestManagerWrapperTest unit tests