test_class.declarator: INVALID_HASHCODE_VALUE = "Test value"
test_class.modifier: private static final
test_class.original_string: private static final String INVALID_HASHCODE_VALUE = "Test value";
test_class.type: String
test_class.var_name: INVALID_HASHCODE_VALUE
test_class.declarator: VALID_HASHCODE_VALUE = "Test valid value"
test_class.modifier: private static final
test_class.original_string: private static final String VALID_HASHCODE_VALUE = "Test valid value";
test_class.type: String
test_class.var_name: VALID_HASHCODE_VALUE
test_class.declarator: VALID_UUID = "valid_uuid"
test_class.modifier: private static final
test_class.original_string: private static final String VALID_UUID = "valid_uuid";
test_class.type: String
test_class.var_name: VALID_UUID
test_class.declarator: INVALID_UUID = "INVALID_UUID"
test_class.modifier: private static final
test_class.original_string: private static final String INVALID_UUID = "INVALID_UUID";
test_class.type: String
test_class.var_name: INVALID_UUID
test_class.declarator: TEST_HASHCODE = "96c4ae94164efdbfe4a86fe834ac13a866da78252f71d3ee0bec2dce3743"
  			+ "7e135c6c52ee4857837589abe06691536153c749d7da4f7fc8cae7cfb35878d154e1"
test_class.modifier: private static final
test_class.original_string: private static final String TEST_HASHCODE = "96c4ae94164efdbfe4a86fe834ac13a866da78252f71d3ee0bec2dce3743"
  			+ "7e135c6c52ee4857837589abe06691536153c749d7da4f7fc8cae7cfb35878d154e1";
test_class.type: String
test_class.var_name: TEST_HASHCODE
test_class.declarator: parentObjectHashcodeService
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private ParentObjectHashcodeService parentObjectHashcodeService;
test_class.type: ParentObjectHashcodeService
test_class.var_name: parentObjectHashcodeService
test_class.declarator: conflictDetection
test_class.modifier: @InjectMocks
  	private
test_class.original_string: @InjectMocks
  	private  ConflictDetectionImpl conflictDetection;
test_class.type: ConflictDetectionImpl
test_class.var_name: conflictDetection
test_class.file: api/src/test/java/org/openmrs/module/sync2/api/conflict/impl/ConflictDetectionImplTest.java
test_class.identifier: ConflictDetectionImplTest
test_case.body: @Test
  	public void detectConflict_shouldReturnFalseIfParentHashcodeNotExist() {
  		SimpleObject currentObj = SimpleObjectMother.createInstance(INVALID_UUID, INVALID_HASHCODE_VALUE);
  		SimpleObject newObj = SimpleObjectMother.createInstance(INVALID_UUID, INVALID_HASHCODE_VALUE);
  		Assert.assertFalse(conflictDetection.detectConflict(currentObj, newObj));
  	}
test_case.class_method_signature: ConflictDetectionImplTest.detectConflict_shouldReturnFalseIfParentHashcodeNotExist()
test_case.full_signature: @Test public void detectConflict_shouldReturnFalseIfParentHashcodeNotExist()
test_case.identifier: detectConflict_shouldReturnFalseIfParentHashcodeNotExist
test_case.invocations: createInstance createInstance assertFalse detectConflict
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void detectConflict_shouldReturnFalseIfParentHashcodeNotExist()
focal_class.declarator: UUID_KEY = "uuid"
focal_class.modifier: private static final
focal_class.original_string: private static final String UUID_KEY = "uuid";
focal_class.type: String
focal_class.var_name: UUID_KEY
focal_class.declarator: parentObjectHashcodeService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private ParentObjectHashcodeService parentObjectHashcodeService;
focal_class.type: ParentObjectHashcodeService
focal_class.var_name: parentObjectHashcodeService
focal_class.file: api/src/main/java/org/openmrs/module/sync2/api/conflict/impl/ConflictDetectionImpl.java
focal_class.identifier: ConflictDetectionImpl
focal_class.interfaces: implements ConflictDetection
focal_class.class_method_signature: ConflictDetectionImpl.detectConflict(SimpleObject currentObject, SimpleObject newObject)
focal_class.full_signature: @Override public boolean detectConflict(SimpleObject currentObject, SimpleObject newObject)
focal_class.identifier: detectConflict
focal_class.modifiers: @Override public
focal_class.parameters: (SimpleObject currentObject, SimpleObject newObject)
focal_class.return: boolean
focal_class.signature: boolean detectConflict(SimpleObject currentObject, SimpleObject newObject)
focal_method.body: @Override
  	public boolean detectConflict(SimpleObject currentObject, SimpleObject newObject) {
  		boolean conflictDetect = false;
  		if (currentObject != null && newObject != null) {
  			String currentHashCode = SyncHashcodeUtils.getHashcode(currentObject);
  			String newHashCode = SyncHashcodeUtils.getHashcode(newObject);
  			String objectUuid = currentObject.get(UUID_KEY);
  			ParentObjectHashcode previousHashCode = parentObjectHashcodeService.getByObjectUuid(objectUuid);
  			if (previousHashCode != null
  					&& (!previousHashCode.getHashcode().equalsIgnoreCase(newHashCode)
  					|| !previousHashCode.getHashcode().equalsIgnoreCase(currentHashCode))) {
  				conflictDetect = true;
  			}
  		}
  		return conflictDetect;
  	}
focal_method.class_method_signature: ConflictDetectionImpl.detectConflict(SimpleObject currentObject, SimpleObject newObject)
focal_method.full_signature: @Override public boolean detectConflict(SimpleObject currentObject, SimpleObject newObject)
focal_method.identifier: detectConflict
focal_method.invocations: getHashcode getHashcode get getByObjectUuid equalsIgnoreCase getHashcode equalsIgnoreCase getHashcode
focal_method.modifiers: @Override public
focal_method.parameters: (SimpleObject currentObject, SimpleObject newObject)
focal_method.return: boolean
focal_method.signature: boolean detectConflict(SimpleObject currentObject, SimpleObject newObject)