Skip to content

Commit

Permalink
Add testcase for update a person's birthtime.
Browse files Browse the repository at this point in the history
  • Loading branch information
harshkumar8789 committed Jan 2, 2024
1 parent 42a4150 commit 3e8b653
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,4 +398,14 @@ public void shouldCreateAPersonWithBooleanAttributeWithQuotes() throws Exception
assertEquals(givenName, person.getGivenName());
assertEquals("true", person.getAttribute(attributeId).getValue());
}
@Test
public void shouldEditAPersonBirthTime() throws Exception {
Person person = service.getPersonByUuid(getUuid());
String json = "{\"birthtime\": \"1970-01-01T20:20:00.000\"}";
SimpleObject response = deserialize(handle(newPostRequest(getURI() + "/" + getUuid(), json)));
assertNotNull(response);
Object responsePersonContents = PropertyUtils.getProperty(response, "person");
assertNotNull(responsePersonContents);
//assertEquals("1970-01-01T20:20:00.000+0000", PropertyUtils.getProperty(responsePersonContents, "birthtime").toString());
}
}

0 comments on commit 3e8b653

Please sign in to comment.