Skip to content

Commit

Permalink
fix isDeleted field resolver to use keyword 'get' (#6210)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobanL authored Jul 26, 2023
1 parent a3bc03f commit 4235b55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public String getEmail() {
return getWrapped().getEmail();
}

public boolean isDeleted() {
public boolean getIsDeleted() {
return getWrapped().isDeleted();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ void getFacilities_success() {
List<String> showArchivedResultIds = showArchivedResult.findValuesAsText("id");
assertTrue(showArchivedResultIds.contains(validFacility.getInternalId().toString()));
assertTrue(showArchivedResultIds.contains(archivedFacility.getInternalId().toString()));

showArchivedResult.forEach(
node -> {
if (node.findValue("name").asText().equals("archived facility")) {
assertTrue(node.findValue("isDeleted").asBoolean());
}
});
variables.put("showArchived", false);
JsonNode noArchivedResult = runQuery("facilities-query", variables).get("facilities");
List<String> noArchivedResultIds = noArchivedResult.findValuesAsText("id");
Expand Down

0 comments on commit 4235b55

Please sign in to comment.