test_class.declarator: tracingService
test_class.modifier: @Mock
test_class.original_string: @Mock
      TracingService tracingService;
test_class.type: TracingService
test_class.var_name: tracingService
test_class.declarator: tracingSearchPresenter
test_class.modifier: @InjectMocks
test_class.original_string: @InjectMocks
      TracingSearchPresenter tracingSearchPresenter;
test_class.type: TracingSearchPresenter
test_class.var_name: tracingSearchPresenter
test_class.file: app/src/test/java/org/unicef/rapidreg/tracing/tracingsearch/TracingSearchPresenterTest.java
test_class.identifier: TracingSearchPresenterTest
test_case.body: @Test
      public void should_get_tracing_list_when_get_search_result() throws Exception {
          Map<String, String> searchConditions = mock(Map.class);
          List<Long> list = new ArrayList<>();
  
          when(searchConditions.get(anyString())).thenReturn("0");
          when(tracingService.getSearchResult(anyString(),anyString(),anyInt(),anyInt(),any()))
                  .thenReturn(list);
  
          assertThat("Should return same list", tracingSearchPresenter.getSearchResult(searchConditions), is(list));
      }
test_case.class_method_signature: TracingSearchPresenterTest.should_get_tracing_list_when_get_search_result()
test_case.full_signature: @Test public void should_get_tracing_list_when_get_search_result()
test_case.identifier: should_get_tracing_list_when_get_search_result
test_case.invocations: mock thenReturn when get anyString thenReturn when getSearchResult anyString anyString anyInt anyInt any assertThat getSearchResult is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_get_tracing_list_when_get_search_result()
focal_class.declarator: tracingService
focal_class.modifier: private
focal_class.original_string: private TracingService tracingService;
focal_class.type: TracingService
focal_class.var_name: tracingService
focal_class.file: app/src/main/java/org/unicef/rapidreg/tracing/tracingsearch/TracingSearchPresenter.java
focal_class.identifier: TracingSearchPresenter
focal_class.class_method_signature: TracingSearchPresenter.TracingSearchPresenter(TracingService tracingService)
focal_class.full_signature: @Inject public  TracingSearchPresenter(TracingService tracingService)
focal_class.identifier: TracingSearchPresenter
focal_class.modifiers: @Inject public
focal_class.parameters: (TracingService tracingService)
focal_class.signature:  TracingSearchPresenter(TracingService tracingService)
focal_class.class_method_signature: TracingSearchPresenter.getSearchResult(Map<String, String> searchConditions)
focal_class.full_signature: @Override protected List<Long> getSearchResult(Map<String, String> searchConditions)
focal_class.identifier: getSearchResult
focal_class.modifiers: @Override protected
focal_class.parameters: (Map<String, String> searchConditions)
focal_class.return: List<Long>
focal_class.signature: List<Long> getSearchResult(Map<String, String> searchConditions)
focal_class.superclass: extends RecordSearchPresenter
focal_method.body: @Override
      protected List<Long> getSearchResult(Map<String, String> searchConditions) {
          String id = searchConditions.get(ID);
          String name = searchConditions.get(NAME);
          int ageFrom = Integer.valueOf(searchConditions.get(AGE_FROM));
          int ageTo = Integer.valueOf(searchConditions.get(AGE_TO));
          String dateOfInquiry = searchConditions.get(DATE_OF_INQUIRY);
  
          return tracingService.getSearchResult(id, name, ageFrom, ageTo, getDate(dateOfInquiry));
      }
focal_method.class_method_signature: TracingSearchPresenter.getSearchResult(Map<String, String> searchConditions)
focal_method.full_signature: @Override protected List<Long> getSearchResult(Map<String, String> searchConditions)
focal_method.identifier: getSearchResult
focal_method.invocations: get get valueOf get valueOf get get getSearchResult getDate
focal_method.modifiers: @Override protected
focal_method.parameters: (Map<String, String> searchConditions)
focal_method.return: List<Long>
focal_method.signature: List<Long> getSearchResult(Map<String, String> searchConditions)