test_class.declarator: incidentService
test_class.modifier: @Mock
test_class.original_string: @Mock
      IncidentService incidentService;
test_class.type: IncidentService
test_class.var_name: incidentService
test_class.declarator: incidentFormService
test_class.modifier: @Mock
test_class.original_string: @Mock
      IncidentFormService incidentFormService;
test_class.type: IncidentFormService
test_class.var_name: incidentFormService
test_class.declarator: incidentListPresenter
test_class.modifier: @InjectMocks
test_class.original_string: @InjectMocks
      IncidentListPresenter incidentListPresenter;
test_class.type: IncidentListPresenter
test_class.var_name: incidentListPresenter
test_class.file: app/src/test/java/org/unicef/rapidreg/incident/incidentlist/IncidentListPresenterTest.java
test_class.identifier: IncidentListPresenterTest
test_case.body: @Test
      public void should_return_records_by_age_ASC_filter(){
          SpinnerState spinnerState = SpinnerState.AGE_ASC;
  
          List<Long> expected = new ArrayList<>();
          when(incidentService.getAllOrderByAgeASC()).thenReturn(expected);
  
          List<Long> actual = incidentListPresenter.getRecordsByFilter(spinnerState);
  
          assertThat("Should return records by age ASC filter when SpinnerState is AGE_ASC", actual, is(expected));
      }
test_case.class_method_signature: IncidentListPresenterTest.should_return_records_by_age_ASC_filter()
test_case.full_signature: @Test public void should_return_records_by_age_ASC_filter()
test_case.identifier: should_return_records_by_age_ASC_filter
test_case.invocations: thenReturn when getAllOrderByAgeASC getRecordsByFilter assertThat is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_return_records_by_age_ASC_filter()
focal_class.declarator: incidentService
focal_class.modifier: private
focal_class.original_string: private IncidentService incidentService;
focal_class.type: IncidentService
focal_class.var_name: incidentService
focal_class.declarator: incidentFormService
focal_class.modifier: private
focal_class.original_string: private IncidentFormService incidentFormService;
focal_class.type: IncidentFormService
focal_class.var_name: incidentFormService
focal_class.file: app/src/main/java/org/unicef/rapidreg/incident/incidentlist/IncidentListPresenter.java
focal_class.identifier: IncidentListPresenter
focal_class.class_method_signature: IncidentListPresenter.IncidentListPresenter(IncidentService incidentService, IncidentFormService
              incidentFormService, RecordService recordService)
focal_class.full_signature: @Inject public  IncidentListPresenter(IncidentService incidentService, IncidentFormService
              incidentFormService, RecordService recordService)
focal_class.identifier: IncidentListPresenter
focal_class.modifiers: @Inject public
focal_class.parameters: (IncidentService incidentService, IncidentFormService
              incidentFormService, RecordService recordService)
focal_class.signature:  IncidentListPresenter(IncidentService incidentService, IncidentFormService
              incidentFormService, RecordService recordService)
focal_class.class_method_signature: IncidentListPresenter.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: IncidentListPresenter.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: IncidentListPresenter.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: IncidentListPresenter.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.class_method_signature: IncidentListPresenter.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.superclass: extends RecordListPresenter
focal_method.body: @Override
      public List<Long> getRecordsByFilter(SpinnerState spinnerState) {
          switch (spinnerState) {
              case AGE_ASC:
                  return incidentService.getAllOrderByAgeASC();
              case AGE_DES:
                  return incidentService.getAllOrderByAgeDES();
              case INTERVIEW_DATE_ASC:
                  return incidentService.getAllOrderByDateASC();
              case INTERVIEW_DATE_DES:
                  return incidentService.getAllOrderByDateDES();
              default:
                  return new ArrayList<>();
          }
      }
focal_method.class_method_signature: IncidentListPresenter.getRecordsByFilter(SpinnerState spinnerState)
focal_method.full_signature: @Override public List<Long> getRecordsByFilter(SpinnerState spinnerState)
focal_method.identifier: getRecordsByFilter
focal_method.invocations: getAllOrderByAgeASC getAllOrderByAgeDES 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)