test_class.declarator: mView
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private SentenceList.View mView;
test_class.type: SentenceList.View
test_class.var_name: mView
test_class.declarator: mModel
test_class.modifier: private
test_class.original_string: private SentenceListViewModel mModel;
test_class.type: SentenceListViewModel
test_class.var_name: mModel
test_class.declarator: mLoadSentencesUseCaseHandler
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private UseCaseHandler mLoadSentencesUseCaseHandler;
test_class.type: UseCaseHandler
test_class.var_name: mLoadSentencesUseCaseHandler
test_class.declarator: mLoadSentencesUC
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private LoadSentencesUC mLoadSentencesUC;
test_class.type: LoadSentencesUC
test_class.var_name: mLoadSentencesUC
test_class.declarator: mLoadSentencesCallbackCaptor
test_class.modifier: @Captor
      private
test_class.original_string: @Captor
      private ArgumentCaptor<LoadSentencesUC.LoadSentencesCallback> mLoadSentencesCallbackCaptor;
test_class.type: ArgumentCaptor<LoadSentencesUC.LoadSentencesCallback>
test_class.var_name: mLoadSentencesCallbackCaptor
test_class.declarator: mLoadSentencesRequestParmsCaptor
test_class.modifier: @Captor
      private
test_class.original_string: @Captor
      private ArgumentCaptor<LoadSentencesUC.LoadSentencesRequestParms> mLoadSentencesRequestParmsCaptor;
test_class.type: ArgumentCaptor<LoadSentencesUC.LoadSentencesRequestParms>
test_class.var_name: mLoadSentencesRequestParmsCaptor
test_class.declarator: mUpdateFavoriteSentenceUseCaseHandler
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private UseCaseHandler mUpdateFavoriteSentenceUseCaseHandler;
test_class.type: UseCaseHandler
test_class.var_name: mUpdateFavoriteSentenceUseCaseHandler
test_class.declarator: mUpdateFavoriteSentenceUC
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private UpdateFavoriteSentenceUC mUpdateFavoriteSentenceUC;
test_class.type: UpdateFavoriteSentenceUC
test_class.var_name: mUpdateFavoriteSentenceUC
test_class.declarator: mEventBus
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private EventBus mEventBus;
test_class.type: EventBus
test_class.var_name: mEventBus
test_class.declarator: mUpdateManualFetchFabEventCaptor
test_class.modifier: @Captor
      private
test_class.original_string: @Captor
      private ArgumentCaptor<UpdateManualFetchFabEvent> mUpdateManualFetchFabEventCaptor;
test_class.type: ArgumentCaptor<UpdateManualFetchFabEvent>
test_class.var_name: mUpdateManualFetchFabEventCaptor
test_class.declarator: mSentenceListPresenter
test_class.modifier: private
test_class.original_string: private SentenceListPresenter mSentenceListPresenter;
test_class.type: SentenceListPresenter
test_class.var_name: mSentenceListPresenter
test_class.declarator: mSentences
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private List<? extends Sentence> mSentences;
test_class.type: List<? extends Sentence>
test_class.var_name: mSentences
test_class.file: app/src/test/java/com/xixicm/de/presentation/presenter/SentenceListPresenterTest.java
test_class.identifier: SentenceListPresenterTest
test_case.body: @Test
      public void testSetFavorite_True() {
          SentenceEntity sentence = new SentenceEntity();
          mSentenceListPresenter.setFavorite(sentence, true);
          assertTrue(sentence.getIsStar());
          // execute update
          verify(mUpdateFavoriteSentenceUC).requestParams(sentence);
          verify(mUpdateFavoriteSentenceUC).execute(mUpdateFavoriteSentenceUseCaseHandler);
      }
test_case.class_method_signature: SentenceListPresenterTest.testSetFavorite_True()
test_case.full_signature: @Test public void testSetFavorite_True()
test_case.identifier: testSetFavorite_True
test_case.invocations: setFavorite assertTrue getIsStar requestParams verify execute verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSetFavorite_True()
focal_class.declarator: mLoadSentencesUseCaseHandler
focal_class.modifier: private
focal_class.original_string: private UseCaseHandler mLoadSentencesUseCaseHandler;
focal_class.type: UseCaseHandler
focal_class.var_name: mLoadSentencesUseCaseHandler
focal_class.declarator: mLoadSentencesUC
focal_class.modifier: private
focal_class.original_string: private LoadSentencesUC mLoadSentencesUC;
focal_class.type: LoadSentencesUC
focal_class.var_name: mLoadSentencesUC
focal_class.declarator: mLoadSentenceCallback
focal_class.modifier: private
focal_class.original_string: private LoadSentencesUC.LoadSentencesCallback mLoadSentenceCallback;
focal_class.type: LoadSentencesUC.LoadSentencesCallback
focal_class.var_name: mLoadSentenceCallback
focal_class.declarator: mUpdateFavoriteSentenceUseCaseHandler
focal_class.modifier: private
focal_class.original_string: private UseCaseHandler mUpdateFavoriteSentenceUseCaseHandler;
focal_class.type: UseCaseHandler
focal_class.var_name: mUpdateFavoriteSentenceUseCaseHandler
focal_class.declarator: mUpdateFavoriteSentenceUC
focal_class.modifier: private
focal_class.original_string: private UpdateFavoriteSentenceUC mUpdateFavoriteSentenceUC;
focal_class.type: UpdateFavoriteSentenceUC
focal_class.var_name: mUpdateFavoriteSentenceUC
focal_class.file: app/src/main/java/com/xixicm/de/presentation/presenter/SentenceListPresenter.java
focal_class.identifier: SentenceListPresenter
focal_class.interfaces: implements SentenceList.Presenter<SentenceList.View, SentenceListViewModel>
focal_class.class_method_signature: SentenceListPresenter.SentenceListPresenter()
focal_class.full_signature: public  SentenceListPresenter()
focal_class.identifier: SentenceListPresenter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  SentenceListPresenter()
focal_class.class_method_signature: SentenceListPresenter.setLoadSentencesUCAndHandler(LoadSentencesUC loadSentencesUC, UseCaseHandler useCaseHandler)
focal_class.full_signature: public void setLoadSentencesUCAndHandler(LoadSentencesUC loadSentencesUC, UseCaseHandler useCaseHandler)
focal_class.identifier: setLoadSentencesUCAndHandler
focal_class.modifiers: public
focal_class.parameters: (LoadSentencesUC loadSentencesUC, UseCaseHandler useCaseHandler)
focal_class.return: void
focal_class.signature: void setLoadSentencesUCAndHandler(LoadSentencesUC loadSentencesUC, UseCaseHandler useCaseHandler)
focal_class.class_method_signature: SentenceListPresenter.setUpdateFavoriteSentenceUCAndHandler(UpdateFavoriteSentenceUC updateFavoriteSentenceUC, UseCaseHandler useCaseHandler)
focal_class.full_signature: public void setUpdateFavoriteSentenceUCAndHandler(UpdateFavoriteSentenceUC updateFavoriteSentenceUC, UseCaseHandler useCaseHandler)
focal_class.identifier: setUpdateFavoriteSentenceUCAndHandler
focal_class.modifiers: public
focal_class.parameters: (UpdateFavoriteSentenceUC updateFavoriteSentenceUC, UseCaseHandler useCaseHandler)
focal_class.return: void
focal_class.signature: void setUpdateFavoriteSentenceUCAndHandler(UpdateFavoriteSentenceUC updateFavoriteSentenceUC, UseCaseHandler useCaseHandler)
focal_class.class_method_signature: SentenceListPresenter.createViewModel()
focal_class.full_signature: @Nullable @Override protected SentenceListViewModel createViewModel()
focal_class.identifier: createViewModel
focal_class.modifiers: @Nullable @Override protected
focal_class.parameters: ()
focal_class.return: SentenceListViewModel
focal_class.signature: SentenceListViewModel createViewModel()
focal_class.class_method_signature: SentenceListPresenter.loadSentences(final boolean firstLoad)
focal_class.full_signature: @Override public void loadSentences(final boolean firstLoad)
focal_class.identifier: loadSentences
focal_class.modifiers: @Override public
focal_class.parameters: (final boolean firstLoad)
focal_class.return: void
focal_class.signature: void loadSentences(final boolean firstLoad)
focal_class.class_method_signature: SentenceListPresenter.findNeedFocusedPosition(List<? extends Sentence> sentences)
focal_class.full_signature: private int findNeedFocusedPosition(List<? extends Sentence> sentences)
focal_class.identifier: findNeedFocusedPosition
focal_class.modifiers: private
focal_class.parameters: (List<? extends Sentence> sentences)
focal_class.return: int
focal_class.signature: int findNeedFocusedPosition(List<? extends Sentence> sentences)
focal_class.class_method_signature: SentenceListPresenter.openSentence(long sentenceId)
focal_class.full_signature: @Override public void openSentence(long sentenceId)
focal_class.identifier: openSentence
focal_class.modifiers: @Override public
focal_class.parameters: (long sentenceId)
focal_class.return: void
focal_class.signature: void openSentence(long sentenceId)
focal_class.class_method_signature: SentenceListPresenter.setFavorite(@NonNull Sentence sentence, boolean favorite)
focal_class.full_signature: @Override public void setFavorite(@NonNull Sentence sentence, boolean favorite)
focal_class.identifier: setFavorite
focal_class.modifiers: @Override public
focal_class.parameters: (@NonNull Sentence sentence, boolean favorite)
focal_class.return: void
focal_class.signature: void setFavorite(@NonNull Sentence sentence, boolean favorite)
focal_class.class_method_signature: SentenceListPresenter.onCreate()
focal_class.full_signature: @Override public void onCreate()
focal_class.identifier: onCreate
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onCreate()
focal_class.class_method_signature: SentenceListPresenter.onActivityCreated()
focal_class.full_signature: @Override public void onActivityCreated()
focal_class.identifier: onActivityCreated
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onActivityCreated()
focal_class.class_method_signature: SentenceListPresenter.onSentenceChanged(SentenceChangedEvent event)
focal_class.full_signature: @Subscribe @Override public void onSentenceChanged(SentenceChangedEvent event)
focal_class.identifier: onSentenceChanged
focal_class.modifiers: @Subscribe @Override public
focal_class.parameters: (SentenceChangedEvent event)
focal_class.return: void
focal_class.signature: void onSentenceChanged(SentenceChangedEvent event)
focal_class.class_method_signature: SentenceListPresenter.setNeedAutoFocused(boolean needAutoFocused)
focal_class.full_signature: @Override public void setNeedAutoFocused(boolean needAutoFocused)
focal_class.identifier: setNeedAutoFocused
focal_class.modifiers: @Override public
focal_class.parameters: (boolean needAutoFocused)
focal_class.return: void
focal_class.signature: void setNeedAutoFocused(boolean needAutoFocused)
focal_class.class_method_signature: SentenceListPresenter.onDestroy()
focal_class.full_signature: @Override public void onDestroy()
focal_class.identifier: onDestroy
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onDestroy()
focal_class.class_method_signature: SentenceListPresenter.getEventBus()
focal_class.full_signature: @VisibleForTesting public EventBus getEventBus()
focal_class.identifier: getEventBus
focal_class.modifiers: @VisibleForTesting public
focal_class.parameters: ()
focal_class.return: EventBus
focal_class.signature: EventBus getEventBus()
focal_class.superclass: extends AbstractMvpPresenter<SentenceList.View, SentenceListViewModel>
focal_method.body: @Override
      public void setFavorite(@NonNull Sentence sentence, boolean favorite) {
          sentence.setIsStar(favorite);
          mUpdateFavoriteSentenceUC.requestParams(sentence).execute(mUpdateFavoriteSentenceUseCaseHandler);
      }
focal_method.class_method_signature: SentenceListPresenter.setFavorite(@NonNull Sentence sentence, boolean favorite)
focal_method.full_signature: @Override public void setFavorite(@NonNull Sentence sentence, boolean favorite)
focal_method.identifier: setFavorite
focal_method.invocations: setIsStar execute requestParams
focal_method.modifiers: @Override public
focal_method.parameters: (@NonNull Sentence sentence, boolean favorite)
focal_method.return: void
focal_method.signature: void setFavorite(@NonNull Sentence sentence, boolean favorite)