Changeset 5385
- Timestamp:
- 08/28/08 13:38:03 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs/trunk/test/api/org/openmrs/test/api/PersonServiceTest.java
r5380 r5385 183 183 * @throws Exception 184 184 */ 185 @Test 185 186 public void savePersonAttributeType_shouldSetTheDateCreatedAndCreatorOnNew() throws Exception { 186 187 PersonService service = Context.getPersonService(); … … 188 189 PersonAttributeType pat = new PersonAttributeType(); 189 190 pat.setName("attr type name"); 191 pat.setDescription("attr type desc"); 190 192 191 193 service.savePersonAttributeType(pat); … … 201 203 * @throws Exception 202 204 */ 205 @Test 203 206 public void savePersonAttributeType_shouldSetTheDateChangedAndChangedByOnUpdate() throws Exception { 204 207 PersonService service = Context.getPersonService(); 205 208 206 // get the type and change its name.209 // get the type and change something about it 207 210 PersonAttributeType pat = service.getPersonAttributeType(2); 208 211 pat.setName("attr type name");