Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mherman22 committed Sep 18, 2024
1 parent dbd41e7 commit c7be312
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,14 @@ public void shouldSupportLocationPersonAttribute() throws Exception {

String personAttributeJson = "{ \"attributeType\":\"" + personAttributeTypeUuid + "\", \"value\":\"1\"}"; //We should be able to pass UUID, see RESTWS-398
SimpleObject personAttribute = deserialize(handle(newPostRequest(getURI(), personAttributeJson)));
System.out.println(personAttribute);

String value = personAttribute.get("value");
Map<String, Object> valueObject = personAttribute.get("value");
assertThat(valueObject, is(notNullValue()));

assertThat(value, is(notNullValue()));
assertThat(value, is(equalTo(personAttribute.get("uuid"))));
String valueUuid = (String) valueObject.get("uuid");

assertThat(valueUuid, is(equalTo("8d6c993e-c2cc-11de-8d13-0010c6dffd0f")));
assertThat((String) personAttribute.get("display"), is("Unknown Location"));
assertThat(personAttribute.get("links"), is(notNullValue()));
}
Expand Down

0 comments on commit c7be312

Please sign in to comment.