Skip to content

Commit

Permalink
Merge branch 'master' into BAH-3439
Browse files Browse the repository at this point in the history
  • Loading branch information
harshkumar8789 authored Jan 2, 2024
2 parents 6a8e7f9 + 2c89d75 commit 6b860a3
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,14 @@ public void shouldEditAPersonBirthTime() throws Exception {
assertNotNull(responsePersonContents);
//assertEquals("1970-01-01T20:20:00.000+0000", PropertyUtils.getProperty(responsePersonContents, "birthtime").toString());
}
@Test
public void shouldCreatePersonWithBirthtime() throws Exception {
String json = "{ \"gender\": \"M\", " + "\"age\": 47, " + "\"birthdate\": \"1970-01-01T00:00:00.000+0100\", "
+ "\"birthdateEstimated\": false, " + "\"dead\": false, " + "\"deathDate\": null, "+ "\"birthtime\": \"1970-01-01T18:18:00.000\", "
+ "\"causeOfDeath\": null, " + "\"names\": [{\"givenName\": \"Thomas\", \"familyName\": \"Smith\"}] " + "}}";

SimpleObject newPerson = deserialize(handle(newPostRequest(getURI(), json)));

assertNotNull(PropertyUtils.getProperty(newPerson, "uuid"));
}
}

0 comments on commit 6b860a3

Please sign in to comment.