Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
07/16/08 12:29:31 (6 months ago)
Author:
bwolfe
Message:

Merging trunk to the 1.3.x branch (sideporting) to get bug fixes into an RC5 release [4745]:[4946]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/1.3.x/test/api/org/openmrs/test/api/PersonServiceTest.java

    r4731 r4947  
    2626import org.openmrs.PersonName; 
    2727import org.openmrs.Relationship; 
     28import org.openmrs.RelationshipType; 
    2829import org.openmrs.api.AdministrationService; 
    2930import org.openmrs.api.PatientService; 
     
    118119                List<Relationship> aRels = personService.getRelationshipsByPerson(p); 
    119120                List<Relationship> bRels = personService.getRelationshipsByPerson(patient); 
     121                 
     122                //test loading relationship types real quick. 
     123                List<RelationshipType> rTmp = personService.getAllRelationshipTypes(); 
     124                assertNotNull(rTmp); 
     125                RelationshipType rTypeTmp = personService.getRelationshipTypeByName("Doctor/Patient"); 
     126                assertNotNull(rTypeTmp); 
     127                rTypeTmp = personService.getRelationshipTypeByName("booya"); 
     128                assertNull(rTypeTmp); 
     129                 
     130 
    120131                // Uncomment for console output. 
    121132                //System.out.println("Relationships before voiding all:");