test_class.declarator: mLoadSentenceUC
test_class.modifier: private
test_class.original_string: private LoadSentenceUC mLoadSentenceUC;
test_class.type: LoadSentenceUC
test_class.var_name: mLoadSentenceUC
test_class.declarator: mSentenceRepository
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private SentenceRepository mSentenceRepository;
test_class.type: SentenceRepository
test_class.var_name: mSentenceRepository
test_class.file: app/src/test/java/com/xixicm/de/domain/interactor/LoadSentenceUCTest.java
test_class.identifier: LoadSentenceUCTest
test_case.body: @Test
      public void testLoadSentence() {
          final Sentence newSentence = new SentenceEntity();
          newSentence.setDateline("2016-08-16");
          newSentence.setId(123L);
          when(mSentenceRepository.getSentence(123L)).thenReturn(newSentence);
          mLoadSentenceUC.setRequestValue(123L);
          mLoadSentenceUC.setUseCaseCallback(new LoadSentenceUC.LoadSentenceCallback() {
              @Override
              public void onSentenceGot(Sentence sentence) {
                  assertThat(sentence, is(newSentence));
              }
          });
          mLoadSentenceUC.run();
          // getLatestSentence is called
          verify(mSentenceRepository).getSentence(123L);
      }
test_case.class_method_signature: LoadSentenceUCTest.testLoadSentence()
test_case.full_signature: @Test public void testLoadSentence()
test_case.identifier: testLoadSentence
test_case.invocations: setDateline setId thenReturn when getSentence setRequestValue setUseCaseCallback assertThat is run getSentence verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testLoadSentence()
focal_class.declarator: mSentenceRepository
focal_class.original_string: SentenceRepository mSentenceRepository;
focal_class.type: SentenceRepository
focal_class.var_name: mSentenceRepository
focal_class.file: app/src/main/java/com/xixicm/de/domain/interactor/LoadSentenceUC.java
focal_class.identifier: LoadSentenceUC
focal_class.class_method_signature: LoadSentenceUC.LoadSentenceUC(SentenceRepository sentenceDataRepository)
focal_class.full_signature: public  LoadSentenceUC(SentenceRepository sentenceDataRepository)
focal_class.identifier: LoadSentenceUC
focal_class.modifiers: public
focal_class.parameters: (SentenceRepository sentenceDataRepository)
focal_class.signature:  LoadSentenceUC(SentenceRepository sentenceDataRepository)
focal_class.class_method_signature: LoadSentenceUC.loadSentence()
focal_class.full_signature: private void loadSentence()
focal_class.identifier: loadSentence
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void loadSentence()
focal_class.class_method_signature: LoadSentenceUC.run()
focal_class.full_signature: @Override public void run()
focal_class.identifier: run
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void run()
focal_class.superclass: extends AbstractUseCase<Long, Sentence, Void>
focal_method.body: private void loadSentence() {
          LogUtils.v(Constants.TAG, "start to load sentence[" + getRequestValue() + "]");
          Sentence sentence = mSentenceRepository.getSentence(getRequestValue());
          if (getUseCaseCallback() != null) {
              getUseCaseCallback().onSuccess(sentence);
          }
      }
focal_method.class_method_signature: LoadSentenceUC.loadSentence()
focal_method.full_signature: private void loadSentence()
focal_method.identifier: loadSentence
focal_method.invocations: v getRequestValue getSentence getRequestValue getUseCaseCallback onSuccess getUseCaseCallback
focal_method.modifiers: private
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void loadSentence()