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: tracingFormService
test_class.modifier: @Mock
test_class.original_string: @Mock
      TracingFormService tracingFormService;
test_class.type: TracingFormService
test_class.var_name: tracingFormService
test_class.declarator: tracingListPresenter
test_class.modifier: @InjectMocks
test_class.original_string: @InjectMocks
      TracingListPresenter tracingListPresenter;
test_class.type: TracingListPresenter
test_class.var_name: tracingListPresenter
test_class.file: app/src/test/java/org/unicef/rapidreg/tracing/tracinglist/TracingListPresenterTest.java
test_class.identifier: TracingListPresenterTest
test_case.body: @Test
      public void should_return_records_by_registration_date_ASC_filter() throws Exception {
          SpinnerState spinnerState = SpinnerState.INQUIRY_DATE_ASC;
  
          List<Long> expected = new ArrayList<>();
          when(tracingService.getAllOrderByDateASC()).thenReturn(expected);
  
          List<Long> actual = tracingListPresenter.getRecordsByFilter(spinnerState);
  
          assertThat("Should return records by registrarion date ASC filter when SpinnerState is " +
                  "AGE_DES", actual, is(expected));
      }
test_case.class_method_signature: TracingListPresenterTest.should_return_records_by_registration_date_ASC_filter()
test_case.full_signature: @Test public void should_return_records_by_registration_date_ASC_filter()
test_case.identifier: should_return_records_by_registration_date_ASC_filter
test_case.invocations: thenReturn when getAllOrderByDateASC getRecordsByFilter assertThat is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_return_records_by_registration_date_ASC_filter()
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.declarator: tracingFormService
focal_class.modifier: private
focal_class.original_string: private TracingFormService tracingFormService;
focal_class.type: TracingFormService
focal_class.var_name: tracingFormService
focal_class.file: app/src/main/java/org/unicef/rapidreg/tracing/tracinglist/TracingListPresenter.java
focal_class.identifier: TracingListPresenter
focal_class.class_method_signature: TracingListPresenter.TracingListPresenter(TracingService tracingService, TracingFormService tracingFormService, RecordService recordService)
focal_class.full_signature: @Inject public  TracingListPresenter(TracingService tracingService, TracingFormService tracingFormService, RecordService recordService)
focal_class.identifier: TracingListPresenter
focal_class.modifiers: @Inject public
focal_class.parameters: (TracingService tracingService, TracingFormService tracingFormService, RecordService recordService)
focal_class.signature:  TracingListPresenter(TracingService tracingService, TracingFormService tracingFormService, RecordService recordService)
focal_class.class_method_signature: TracingListPresenter.isFormReady()
focal_class.full_signature: @Override public boolean isFormReady()
focal_class.identifier: isFormReady
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isFormReady()
focal_class.class_method_signature: TracingListPresenter.calculateDisplayedIndex()
focal_class.full_signature: @Override public int calculateDisplayedIndex()
focal_class.identifier: calculateDisplayedIndex
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int calculateDisplayedIndex()
focal_class.class_method_signature: TracingListPresenter.getRecordsByFilter(SpinnerState spinnerState)
focal_class.full_signature: @Override public List<Long> getRecordsByFilter(SpinnerState spinnerState)
focal_class.identifier: getRecordsByFilter
focal_class.modifiers: @Override public
focal_class.parameters: (SpinnerState spinnerState)
focal_class.return: List<Long>
focal_class.signature: List<Long> getRecordsByFilter(SpinnerState spinnerState)
focal_class.class_method_signature: TracingListPresenter.getSyncedRecords()
focal_class.full_signature: @Override public List<Long> getSyncedRecords()
focal_class.identifier: getSyncedRecords
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<Long>
focal_class.signature: List<Long> getSyncedRecords()
focal_class.class_method_signature: TracingListPresenter.getSyncedRecordsCount()
focal_class.full_signature: @Override public int getSyncedRecordsCount()
focal_class.identifier: getSyncedRecordsCount
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getSyncedRecordsCount()
focal_class.superclass: extends RecordListPresenter
focal_method.body: @Override
      public List<Long> getRecordsByFilter(SpinnerState spinnerState) {
          switch (spinnerState) {
              case INQUIRY_DATE_ASC:
                  return tracingService.getAllOrderByDateASC();
              case INQUIRY_DATE_DES:
                  return tracingService.getAllOrderByDateDES();
              default:
                  return null;
          }
      }
focal_method.class_method_signature: TracingListPresenter.getRecordsByFilter(SpinnerState spinnerState)
focal_method.full_signature: @Override public List<Long> getRecordsByFilter(SpinnerState spinnerState)
focal_method.identifier: getRecordsByFilter
focal_method.invocations: getAllOrderByDateASC getAllOrderByDateDES
focal_method.modifiers: @Override public
focal_method.parameters: (SpinnerState spinnerState)
focal_method.return: List<Long>
focal_method.signature: List<Long> getRecordsByFilter(SpinnerState spinnerState)