Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Changeset 5385

Show
Ignore:
Timestamp:
08/28/08 13:38:03 (3 months ago)
Author:
bwolfe
Message:

Fixing PersonServiceTests after being chastised by mseaton

Files:

Legend:

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

    r5380 r5385  
    183183         * @throws Exception 
    184184         */ 
     185        @Test 
    185186        public void savePersonAttributeType_shouldSetTheDateCreatedAndCreatorOnNew() throws Exception { 
    186187                PersonService service = Context.getPersonService(); 
     
    188189                PersonAttributeType pat = new PersonAttributeType(); 
    189190                pat.setName("attr type name"); 
     191                pat.setDescription("attr type desc"); 
    190192                 
    191193                service.savePersonAttributeType(pat); 
     
    201203         * @throws Exception 
    202204         */ 
     205        @Test 
    203206        public void savePersonAttributeType_shouldSetTheDateChangedAndChangedByOnUpdate() throws Exception { 
    204207                PersonService service = Context.getPersonService(); 
    205208                 
    206                 // get the type and change its name. 
     209                // get the type and change something about it 
    207210                PersonAttributeType pat = service.getPersonAttributeType(2); 
    208211                pat.setName("attr type name");