test_class.declarator: url = "http://35.61.56.113:8443"
test_class.modifier: private
test_class.original_string: private String url = "http://35.61.56.113:8443";
test_class.type: String
test_class.var_name: url
test_class.declarator: user
test_class.modifier: private
test_class.original_string: private User user;
test_class.type: User
test_class.var_name: user
test_class.declarator: tracingDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private TracingDao tracingDao;
test_class.type: TracingDao
test_class.var_name: tracingDao
test_class.declarator: tracingPhotoDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private TracingPhotoDao tracingPhotoDao;
test_class.type: TracingPhotoDao
test_class.var_name: tracingPhotoDao
test_class.declarator: tracingService
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private TracingService tracingService;
test_class.type: TracingService
test_class.var_name: tracingService
test_class.file: app/src/test/java/org/unicef/rapidreg/service/TracingServiceTest.java
test_class.identifier: TracingServiceTest
test_case.body: @Test
      public void should_save_tracing_when_give_item_values_and_item_values_map_have_register_date()
              throws IOException {
          String url = "http://35.61.65.113:8443";
          Mockito.when(PrimeroAppConfiguration.getApiBaseUrl()).thenReturn(url);
  
          String uniqueId = "test save tracing";
          ItemValuesMap itemValuesMap = new ItemValuesMap();
          itemValuesMap.addStringItem(RELATION_AGE, "10");
          itemValuesMap.addStringItem(CAREGIVER_NAME, "100");
          itemValuesMap.addStringItem(INQUIRY_DATE, "1/1/2000");
          List<String> photoPaths = Collections.EMPTY_LIST;
  
          TracingService tracingServiceSpy = spy(tracingService);
          when(tracingServiceSpy.generateUniqueId()).thenReturn(uniqueId);
  
          Tracing tracingTemp = new Tracing();
          when(tracingDao.save(any(Tracing.class))).thenReturn(tracingTemp);
  
          Tracing expected = new Tracing();
          when(tracingPhotoDao.save(tracingTemp, photoPaths)).thenReturn(expected);
  
          Tracing savedTracing = tracingServiceSpy.save(itemValuesMap, photoPaths);
          assertThat(savedTracing.getServerUrl(), is(TextUtils.lintUrl(url)));
          verify(tracingDao, times(1)).save(any(Tracing.class));
          verify(tracingPhotoDao, times(1)).save(any(Tracing.class), anyList());
      }
test_case.class_method_signature: TracingServiceTest.should_save_tracing_when_give_item_values_and_item_values_map_have_register_date()
test_case.full_signature: @Test public void should_save_tracing_when_give_item_values_and_item_values_map_have_register_date()
test_case.identifier: should_save_tracing_when_give_item_values_and_item_values_map_have_register_date
test_case.invocations: thenReturn when getApiBaseUrl addStringItem addStringItem addStringItem spy thenReturn when generateUniqueId thenReturn when save any thenReturn when save save assertThat getServerUrl is lintUrl save verify times any save verify times any anyList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_save_tracing_when_give_item_values_and_item_values_map_have_register_date()
focal_class.declarator: TAG = TracingService.class.getSimpleName()
focal_class.modifier: public static final
focal_class.original_string: public static final String TAG = TracingService.class.getSimpleName();
focal_class.type: String
focal_class.var_name: TAG
focal_class.declarator: TRACING_DISPLAY_ID = "tracing_request_id_display"
focal_class.modifier: public static final
focal_class.original_string: public static final String TRACING_DISPLAY_ID = "tracing_request_id_display";
focal_class.type: String
focal_class.var_name: TRACING_DISPLAY_ID
focal_class.declarator: TRACING_ID = "tracing_request_id"
focal_class.modifier: public static final
focal_class.original_string: public static final String TRACING_ID = "tracing_request_id";
focal_class.type: String
focal_class.var_name: TRACING_ID
focal_class.declarator: TRACING_PRIMARY_ID = "tracing_primary_id"
focal_class.modifier: public static final
focal_class.original_string: public static final String TRACING_PRIMARY_ID = "tracing_primary_id";
focal_class.type: String
focal_class.var_name: TRACING_PRIMARY_ID
focal_class.declarator: tracingDao = new TracingDaoImpl()
focal_class.modifier: private
focal_class.original_string: private TracingDao tracingDao = new TracingDaoImpl();
focal_class.type: TracingDao
focal_class.var_name: tracingDao
focal_class.declarator: tracingPhotoDao = new TracingPhotoDaoImpl()
focal_class.modifier: private
focal_class.original_string: private TracingPhotoDao tracingPhotoDao = new TracingPhotoDaoImpl();
focal_class.type: TracingPhotoDao
focal_class.var_name: tracingPhotoDao
focal_class.file: app/src/main/java/org/unicef/rapidreg/service/TracingService.java
focal_class.identifier: TracingService
focal_class.class_method_signature: TracingService.TracingService(TracingDao tracingDao, TracingPhotoDao tracingPhotoDao)
focal_class.full_signature: public  TracingService(TracingDao tracingDao, TracingPhotoDao tracingPhotoDao)
focal_class.identifier: TracingService
focal_class.modifiers: public
focal_class.parameters: (TracingDao tracingDao, TracingPhotoDao tracingPhotoDao)
focal_class.signature:  TracingService(TracingDao tracingDao, TracingPhotoDao tracingPhotoDao)
focal_class.class_method_signature: TracingService.getById(long tracingId)
focal_class.full_signature: public Tracing getById(long tracingId)
focal_class.identifier: getById
focal_class.modifiers: public
focal_class.parameters: (long tracingId)
focal_class.return: Tracing
focal_class.signature: Tracing getById(long tracingId)
focal_class.class_method_signature: TracingService.getByUniqueId(String uniqueId)
focal_class.full_signature: public Tracing getByUniqueId(String uniqueId)
focal_class.identifier: getByUniqueId
focal_class.modifiers: public
focal_class.parameters: (String uniqueId)
focal_class.return: Tracing
focal_class.signature: Tracing getByUniqueId(String uniqueId)
focal_class.class_method_signature: TracingService.getAll()
focal_class.full_signature: public List<Tracing> getAll()
focal_class.identifier: getAll
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Tracing>
focal_class.signature: List<Tracing> getAll()
focal_class.class_method_signature: TracingService.getAllOrderByDateASC()
focal_class.full_signature: public List<Long> getAllOrderByDateASC()
focal_class.identifier: getAllOrderByDateASC
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Long>
focal_class.signature: List<Long> getAllOrderByDateASC()
focal_class.class_method_signature: TracingService.getAllOrderByDateDES()
focal_class.full_signature: public List<Long> getAllOrderByDateDES()
focal_class.identifier: getAllOrderByDateDES
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Long>
focal_class.signature: List<Long> getAllOrderByDateDES()
focal_class.class_method_signature: TracingService.getSearchResult(String uniqueId, String name, int ageFrom, int ageTo, Date
              date)
focal_class.full_signature: public List<Long> getSearchResult(String uniqueId, String name, int ageFrom, int ageTo, Date
              date)
focal_class.identifier: getSearchResult
focal_class.modifiers: public
focal_class.parameters: (String uniqueId, String name, int ageFrom, int ageTo, Date
              date)
focal_class.return: List<Long>
focal_class.signature: List<Long> getSearchResult(String uniqueId, String name, int ageFrom, int ageTo, Date
              date)
focal_class.class_method_signature: TracingService.getSearchCondition(String shortId, String name, int ageFrom, int
              ageTo, Date date)
focal_class.full_signature: private ConditionGroup getSearchCondition(String shortId, String name, int ageFrom, int
              ageTo, Date date)
focal_class.identifier: getSearchCondition
focal_class.modifiers: private
focal_class.parameters: (String shortId, String name, int ageFrom, int
              ageTo, Date date)
focal_class.return: ConditionGroup
focal_class.signature: ConditionGroup getSearchCondition(String shortId, String name, int ageFrom, int
              ageTo, Date date)
focal_class.class_method_signature: TracingService.saveOrUpdate(ItemValuesMap itemValues, List<String> photoPaths)
focal_class.full_signature: public Tracing saveOrUpdate(ItemValuesMap itemValues, List<String> photoPaths)
focal_class.identifier: saveOrUpdate
focal_class.modifiers: public
focal_class.parameters: (ItemValuesMap itemValues, List<String> photoPaths)
focal_class.return: Tracing
focal_class.signature: Tracing saveOrUpdate(ItemValuesMap itemValues, List<String> photoPaths)
focal_class.class_method_signature: TracingService.save(ItemValuesMap itemValues, List<String> photoPaths)
focal_class.full_signature: public Tracing save(ItemValuesMap itemValues, List<String> photoPaths)
focal_class.identifier: save
focal_class.modifiers: public
focal_class.parameters: (ItemValuesMap itemValues, List<String> photoPaths)
focal_class.return: Tracing
focal_class.signature: Tracing save(ItemValuesMap itemValues, List<String> photoPaths)
focal_class.class_method_signature: TracingService.update(ItemValuesMap itemValues,
                            List<String> photoBitPaths)
focal_class.full_signature: public Tracing update(ItemValuesMap itemValues,
                            List<String> photoBitPaths)
focal_class.identifier: update
focal_class.modifiers: public
focal_class.parameters: (ItemValuesMap itemValues,
                            List<String> photoBitPaths)
focal_class.return: Tracing
focal_class.signature: Tracing update(ItemValuesMap itemValues,
                            List<String> photoBitPaths)
focal_class.class_method_signature: TracingService.deleteByRecordId(long recordId)
focal_class.full_signature: public Tracing deleteByRecordId(long recordId)
focal_class.identifier: deleteByRecordId
focal_class.modifiers: public
focal_class.parameters: (long recordId)
focal_class.return: Tracing
focal_class.signature: Tracing deleteByRecordId(long recordId)
focal_class.class_method_signature: TracingService.generateTracingFromItemValues(ItemValuesMap itemValues, String uniqueId)
focal_class.full_signature: private Tracing generateTracingFromItemValues(ItemValuesMap itemValues, String uniqueId)
focal_class.identifier: generateTracingFromItemValues
focal_class.modifiers: private
focal_class.parameters: (ItemValuesMap itemValues, String uniqueId)
focal_class.return: Tracing
focal_class.signature: Tracing generateTracingFromItemValues(ItemValuesMap itemValues, String uniqueId)
focal_class.class_method_signature: TracingService.updateTracingFromItemValues(ItemValuesMap itemValues)
focal_class.full_signature: private Tracing updateTracingFromItemValues(ItemValuesMap itemValues)
focal_class.identifier: updateTracingFromItemValues
focal_class.modifiers: private
focal_class.parameters: (ItemValuesMap itemValues)
focal_class.return: Tracing
focal_class.signature: Tracing updateTracingFromItemValues(ItemValuesMap itemValues)
focal_class.class_method_signature: TracingService.generateTracingBlob(ItemValuesMap itemValues, String uniqueId, String username)
focal_class.full_signature: private Blob generateTracingBlob(ItemValuesMap itemValues, String uniqueId, String username)
focal_class.identifier: generateTracingBlob
focal_class.modifiers: private
focal_class.parameters: (ItemValuesMap itemValues, String uniqueId, String username)
focal_class.return: Blob
focal_class.signature: Blob generateTracingBlob(ItemValuesMap itemValues, String uniqueId, String username)
focal_class.class_method_signature: TracingService.getName(ItemValuesMap values)
focal_class.full_signature: private String getName(ItemValuesMap values)
focal_class.identifier: getName
focal_class.modifiers: private
focal_class.parameters: (ItemValuesMap values)
focal_class.return: String
focal_class.signature: String getName(ItemValuesMap values)
focal_class.class_method_signature: TracingService.getAudioBlob()
focal_class.full_signature: private Blob getAudioBlob()
focal_class.identifier: getAudioBlob
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Blob
focal_class.signature: Blob getAudioBlob()
focal_class.class_method_signature: TracingService.getByInternalId(String id)
focal_class.full_signature: public Tracing getByInternalId(String id)
focal_class.identifier: getByInternalId
focal_class.modifiers: public
focal_class.parameters: (String id)
focal_class.return: Tracing
focal_class.signature: Tracing getByInternalId(String id)
focal_class.class_method_signature: TracingService.hasSameRev(String id, String rev)
focal_class.full_signature: public boolean hasSameRev(String id, String rev)
focal_class.identifier: hasSameRev
focal_class.modifiers: public
focal_class.parameters: (String id, String rev)
focal_class.return: boolean
focal_class.signature: boolean hasSameRev(String id, String rev)
focal_class.class_method_signature: TracingService.getAllSyncedRecordsId()
focal_class.full_signature: public List<Long> getAllSyncedRecordsId()
focal_class.identifier: getAllSyncedRecordsId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Long>
focal_class.signature: List<Long> getAllSyncedRecordsId()
focal_class.superclass: extends RecordService
focal_method.body: public Tracing save(ItemValuesMap itemValues, List<String> photoPaths) throws IOException {
          Tracing tracing = generateTracingFromItemValues(itemValues,
                  generateUniqueId());
          tracingDao.save(tracing);
          tracingPhotoDao.save(tracing, photoPaths);
          return tracing;
      }
focal_method.class_method_signature: TracingService.save(ItemValuesMap itemValues, List<String> photoPaths)
focal_method.full_signature: public Tracing save(ItemValuesMap itemValues, List<String> photoPaths)
focal_method.identifier: save
focal_method.invocations: generateTracingFromItemValues generateUniqueId save save
focal_method.modifiers: public
focal_method.parameters: (ItemValuesMap itemValues, List<String> photoPaths)
focal_method.return: Tracing
focal_method.signature: Tracing save(ItemValuesMap itemValues, List<String> photoPaths)