Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Changeset 4304

Show
Ignore:
Timestamp:
05/21/08 17:46:27 (6 months ago)
Author:
catullus
Message:

Fixed unit test to play better with hibernate.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/trunk/test/api/org/openmrs/test/api/PatientServiceTest.java

    r4301 r4304  
    165165                executeDataSet(CREATE_PATIENT_VALID_IDENT_XML); 
    166166                Patient patient = createBasicPatient(); 
     167                Patient patient2 = createBasicPatient(); 
    167168                 
    168169                PatientIdentifierType pit = ps.getPatientIdentifierType(1); 
     
    193194                        ps.deletePatient(patient); 
    194195                        patient.removeIdentifier(ident3); 
    195                         patient.addIdentifier(ident4); 
    196                         ps.createPatient(patient); 
     196                        patient2.addIdentifier(ident4); 
     197                        ps.createPatient(patient2); 
    197198                }catch(InvalidCheckDigitException ex){ 
    198199                        fail("Patient creation should have worked with identifiers " + ident3.getIdentifier() + " and " + ident4.getIdentifier());