Skip to content

Commit

Permalink
TRUNK-6028 HibernatePatientDAOTest pass on MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
dkayiwa committed Sep 22, 2022
1 parent 6054d40 commit 632078f
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public void getDuplicatePatientsByAttributes_shouldReturnPatientsWithDuplicatedA
person1.setBirthdate(Date.valueOf("2021-06-26"));
person1 = hibernatePersonDAO.savePerson(person1);
Patient patient1 = new Patient(person1);
patient1.addIdentifier(new PatientIdentifier("101X", null, null));
patient1.addIdentifier(new PatientIdentifier("101X", new PatientIdentifierType(1), null));
hibernatePatientDao.savePatient(patient1);

Person person2 = new Person();
Expand All @@ -206,7 +206,7 @@ public void getDuplicatePatientsByAttributes_shouldReturnPatientsWithDuplicatedA
person2.setBirthdate(Date.valueOf("2021-06-26"));
person2 = hibernatePersonDAO.savePerson(person2);
Patient patient2 = new Patient(person2);
patient2.addIdentifier(new PatientIdentifier("101X", null, null));
patient2.addIdentifier(new PatientIdentifier("101X", new PatientIdentifierType(1), null));
hibernatePatientDao.savePatient(patient2);

// when
Expand All @@ -227,7 +227,7 @@ public void getDuplicatePatientsByAttributes_shouldNotReturnVoidedPatientsWithDu
person1.setBirthdate(Date.valueOf("2021-06-26"));
person1 = hibernatePersonDAO.savePerson(person1);
Patient patient1 = new Patient(person1);
patient1.addIdentifier(new PatientIdentifier("101X", null, null));
patient1.addIdentifier(new PatientIdentifier("101X", new PatientIdentifierType(1), null));
patient1.setVoided(true);
hibernatePatientDao.savePatient(patient1);

Expand All @@ -237,7 +237,7 @@ public void getDuplicatePatientsByAttributes_shouldNotReturnVoidedPatientsWithDu
person2.setBirthdate(Date.valueOf("2021-06-26"));
person2 = hibernatePersonDAO.savePerson(person2);
Patient patient2 = new Patient(person2);
patient2.addIdentifier(new PatientIdentifier("101X", null, null));
patient2.addIdentifier(new PatientIdentifier("101X", new PatientIdentifierType(1), null));
patient2.setVoided(true);
hibernatePatientDao.savePatient(patient2);

Expand All @@ -262,7 +262,7 @@ public void getDuplicatePatientsByAttributes_shouldReturnVoidedPatientsWithDupli
person1.setBirthdate(Date.valueOf("2021-06-26"));
person1 = hibernatePersonDAO.savePerson(person1);
Patient patient1 = new Patient(person1);
patient1.addIdentifier(new PatientIdentifier("101X", null, null));
patient1.addIdentifier(new PatientIdentifier("101X", new PatientIdentifierType(1), null));
patient1.setVoided(true);
hibernatePatientDao.savePatient(patient1);

Expand All @@ -272,7 +272,7 @@ public void getDuplicatePatientsByAttributes_shouldReturnVoidedPatientsWithDupli
person2.setBirthdate(Date.valueOf("2021-06-26"));
person2 = hibernatePersonDAO.savePerson(person2);
Patient patient2 = new Patient(person2);
patient2.addIdentifier(new PatientIdentifier("101X", null, null));
patient2.addIdentifier(new PatientIdentifier("101X", new PatientIdentifierType(1), null));
patient2.setVoided(true);
hibernatePatientDao.savePatient(patient2);

Expand Down

0 comments on commit 632078f

Please sign in to comment.