Search in sources :

Example 41 with PersonMergeLog

use of org.openmrs.person.PersonMergeLog in project openmrs-core by openmrs.

the class PersonServiceTest method savePersonMergeLog_shouldSerializePersonMergeLogData.

/**
 * @see PersonService#savePersonMergeLog(PersonMergeLog)
 */
@Test
public void savePersonMergeLog_shouldSerializePersonMergeLogData() throws Exception {
    PersonMergeLog personMergeLog = getTestPersonMergeLog();
    personMergeLog.setSerializedMergedData(null);
    PersonMergeLog persisted = Context.getPersonService().savePersonMergeLog(personMergeLog);
    Assert.assertNotNull("PatientMergeLogData has not been serialized", persisted.getSerializedMergedData());
}
Also used : PersonMergeLog(org.openmrs.person.PersonMergeLog) Test(org.junit.Test) BaseContextSensitiveTest(org.openmrs.test.BaseContextSensitiveTest)

Aggregations

PersonMergeLog (org.openmrs.person.PersonMergeLog)41 Test (org.junit.Test)37 BaseContextSensitiveTest (org.openmrs.test.BaseContextSensitiveTest)37 Patient (org.openmrs.Patient)18 PatientServiceImplTest (org.openmrs.api.impl.PatientServiceImplTest)18 Person (org.openmrs.Person)9 PersonName (org.openmrs.PersonName)8 PersonMergeLogData (org.openmrs.person.PersonMergeLogData)8 Date (java.util.Date)6 BindException (org.springframework.validation.BindException)6 Errors (org.springframework.validation.Errors)6 GregorianCalendar (java.util.GregorianCalendar)4 Location (org.openmrs.Location)2 Obs (org.openmrs.Obs)2 PatientIdentifier (org.openmrs.PatientIdentifier)2 PersonAddress (org.openmrs.PersonAddress)2 PersonAttribute (org.openmrs.PersonAttribute)2 ArrayList (java.util.ArrayList)1 Encounter (org.openmrs.Encounter)1 PatientIdentifierType (org.openmrs.PatientIdentifierType)1