Skip to content

Commit

Permalink
BAH-3439 || Move testcase which is for update a person's birthtime to…
Browse files Browse the repository at this point in the history
… other class.
  • Loading branch information
harshkumar8789 committed Jan 2, 2024
1 parent 3e8b653 commit 6a8e7f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,14 +398,4 @@ 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());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,14 @@ public void shouldEditAPerson() throws Exception {
assertTrue(person.isDead());
assertNotNull(person.getCauseOfDeathNonCoded());
}
@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 6a8e7f9

Please sign in to comment.