test_class.declarator: casePhotoDao
test_class.modifier: @Mock
test_class.original_string: @Mock
      CasePhotoDao casePhotoDao;
test_class.type: CasePhotoDao
test_class.var_name: casePhotoDao
test_class.declarator: casePhotoService
test_class.modifier: @InjectMocks
test_class.original_string: @InjectMocks
      CasePhotoService casePhotoService;
test_class.type: CasePhotoService
test_class.var_name: casePhotoService
test_class.file: app/src/test/java/org/unicef/rapidreg/service/CasePhotoServiceTest.java
test_class.identifier: CasePhotoServiceTest
test_case.body: @Test
      public void should_return_false_when_count_un_synced_less_then_zero() throws Exception {
          when(casePhotoDao.countUnSynced(anyLong())).thenReturn(-1L);
          assertThat("Should return false", casePhotoService.hasUnSynced(1L), is(false));
          verify(casePhotoDao).countUnSynced(1L);
      }
test_case.class_method_signature: CasePhotoServiceTest.should_return_false_when_count_un_synced_less_then_zero()
test_case.full_signature: @Test public void should_return_false_when_count_un_synced_less_then_zero()
test_case.identifier: should_return_false_when_count_un_synced_less_then_zero
test_case.invocations: thenReturn when countUnSynced anyLong assertThat hasUnSynced is countUnSynced verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_return_false_when_count_un_synced_less_then_zero()
focal_class.declarator: TAG = CasePhotoService.class.getSimpleName()
focal_class.modifier: public static final
focal_class.original_string: public static final String TAG = CasePhotoService.class.getSimpleName();
focal_class.type: String
focal_class.var_name: TAG
focal_class.declarator: CASE_SERVICE
              = new CasePhotoService(new CasePhotoDaoImpl())
focal_class.modifier: private static final
focal_class.original_string: private static final CasePhotoService CASE_SERVICE
              = new CasePhotoService(new CasePhotoDaoImpl());
focal_class.type: CasePhotoService
focal_class.var_name: CASE_SERVICE
focal_class.declarator: casePhotoDao
focal_class.modifier: private
focal_class.original_string: private CasePhotoDao casePhotoDao;
focal_class.type: CasePhotoDao
focal_class.var_name: casePhotoDao
focal_class.file: app/src/main/java/org/unicef/rapidreg/service/CasePhotoService.java
focal_class.identifier: CasePhotoService
focal_class.class_method_signature: CasePhotoService.getInstance()
focal_class.full_signature: public static CasePhotoService getInstance()
focal_class.identifier: getInstance
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: CasePhotoService
focal_class.signature: CasePhotoService getInstance()
focal_class.class_method_signature: CasePhotoService.CasePhotoService(CasePhotoDao caseDao)
focal_class.full_signature: public  CasePhotoService(CasePhotoDao caseDao)
focal_class.identifier: CasePhotoService
focal_class.modifiers: public
focal_class.parameters: (CasePhotoDao caseDao)
focal_class.signature:  CasePhotoService(CasePhotoDao caseDao)
focal_class.class_method_signature: CasePhotoService.getFirst(long caseId)
focal_class.full_signature: public CasePhoto getFirst(long caseId)
focal_class.identifier: getFirst
focal_class.modifiers: public
focal_class.parameters: (long caseId)
focal_class.return: CasePhoto
focal_class.signature: CasePhoto getFirst(long caseId)
focal_class.class_method_signature: CasePhotoService.getById(long id)
focal_class.full_signature: public CasePhoto getById(long id)
focal_class.identifier: getById
focal_class.modifiers: public
focal_class.parameters: (long id)
focal_class.return: CasePhoto
focal_class.signature: CasePhoto getById(long id)
focal_class.class_method_signature: CasePhotoService.getIdsByCaseId(long caseId)
focal_class.full_signature: public List<Long> getIdsByCaseId(long caseId)
focal_class.identifier: getIdsByCaseId
focal_class.modifiers: public
focal_class.parameters: (long caseId)
focal_class.return: List<Long>
focal_class.signature: List<Long> getIdsByCaseId(long caseId)
focal_class.class_method_signature: CasePhotoService.hasUnSynced(long caseId)
focal_class.full_signature: public boolean hasUnSynced(long caseId)
focal_class.identifier: hasUnSynced
focal_class.modifiers: public
focal_class.parameters: (long caseId)
focal_class.return: boolean
focal_class.signature: boolean hasUnSynced(long caseId)
focal_class.class_method_signature: CasePhotoService.deleteByCaseId(long caseId)
focal_class.full_signature: public void deleteByCaseId(long caseId)
focal_class.identifier: deleteByCaseId
focal_class.modifiers: public
focal_class.parameters: (long caseId)
focal_class.return: void
focal_class.signature: void deleteByCaseId(long caseId)
focal_method.body: public boolean hasUnSynced(long caseId) {
          return casePhotoDao.countUnSynced(caseId) > 0;
      }
focal_method.class_method_signature: CasePhotoService.hasUnSynced(long caseId)
focal_method.full_signature: public boolean hasUnSynced(long caseId)
focal_method.identifier: hasUnSynced
focal_method.invocations: countUnSynced
focal_method.modifiers: public
focal_method.parameters: (long caseId)
focal_method.return: boolean
focal_method.signature: boolean hasUnSynced(long caseId)