@Test public void calculate_CreatesDiffRequest() { mBuilder.calculate(); then(mDiffRequestManager).should().execute(any(DiffRequest.class)); }
public void calculate() { final DiffRequest<D> diffRequest = new DiffRequest<>(mDetectMoves, mTag, mNewData, mCallback); mDiffRequestManager.execute(diffRequest); }
DiffRequestBuilder { public void calculate() { final DiffRequest<D> diffRequest = new DiffRequest<>(mDetectMoves, mTag, mNewData, mCallback); mDiffRequestManager.execute(diffRequest); } }
DiffRequestBuilder { public void calculate() { final DiffRequest<D> diffRequest = new DiffRequest<>(mDetectMoves, mTag, mNewData, mCallback); mDiffRequestManager.execute(diffRequest); } DiffRequestBuilder(@NonNull final Manager<D> diffRequestManager,
                              @NonNull final DiffUtil.Callback callback); }
DiffRequestBuilder { public void calculate() { final DiffRequest<D> diffRequest = new DiffRequest<>(mDetectMoves, mTag, mNewData, mCallback); mDiffRequestManager.execute(diffRequest); } DiffRequestBuilder(@NonNull final Manager<D> diffRequestManager,
                              @NonNull final DiffUtil.Callback callback); @NonNull static DiffRequestBuilder<T> create(@NonNull final Manager<T> diffRequestManager,
                                                   @NonNull final DiffUtil.Callback callback); @NonNull DiffRequestBuilder<D> detectMoves(final boolean detectMoves); @NonNull DiffRequestBuilder<D> updateAdapterWithNewData(@NonNull final List<D> newData); void calculate(); boolean isDetectingMoves(); }
DiffRequestBuilder { public void calculate() { final DiffRequest<D> diffRequest = new DiffRequest<>(mDetectMoves, mTag, mNewData, mCallback); mDiffRequestManager.execute(diffRequest); } DiffRequestBuilder(@NonNull final Manager<D> diffRequestManager,
                              @NonNull final DiffUtil.Callback callback); @NonNull static DiffRequestBuilder<T> create(@NonNull final Manager<T> diffRequestManager,
                                                   @NonNull final DiffUtil.Callback callback); @NonNull DiffRequestBuilder<D> detectMoves(final boolean detectMoves); @NonNull DiffRequestBuilder<D> updateAdapterWithNewData(@NonNull final List<D> newData); void calculate(); boolean isDetectingMoves();  }