Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thelenw committed Oct 21, 2024
1 parent 58e5f70 commit 877b92c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,6 @@ void testGETFindAssignmentsByPeriodIdDefaultAssignments() {

assertNotNull(response.body());
assertEquals(0, Objects.requireNonNull(response.body()).size());
assertTrue(response.body().stream().anyMatch(ra -> ra.getRevieweeId().equals(memberOne.getId())));
assertTrue(response.body().stream().anyMatch(ra -> ra.getRevieweeId().equals(memberTwo.getId())));
assertTrue(response.body().stream().anyMatch(ra -> ra.getRevieweeId().equals(memberThree.getId())));
assertEquals(HttpStatus.OK, response.getStatus());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ void canListAndFilterRelationships() {
// Can include inactive relationships
List<VolunteeringRelationship> allWithInactiveRelationships = relationshipClient.list(memberAuth, null, null, true);
assertEquals(4, allWithInactiveRelationships.size());
assertEquals(List.of(sarahLiftForLife.getId(), timLiftForLife.getId(), sarahFoodbank.getId(), timFoodbankInactive.getId()), allWithInactiveRelationships.stream().map(VolunteeringRelationship::getId).toList());
assertEquals(List.of(sarahFoodbank.getId(), sarahLiftForLife.getId(), timFoodbankInactive.getId(), timLiftForLife.getId()), allWithInactiveRelationships.stream().map(VolunteeringRelationship::getId).toList());

// Can filter by memberId
List<VolunteeringRelationship> timRelationships = relationshipClient.list(memberAuth, tim.getId(), null, null);
Expand Down

0 comments on commit 877b92c

Please sign in to comment.