Skip to content

Commit 5c4bb9b

Browse files
committed
Updated tests
1 parent a5e8efd commit 5c4bb9b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

server/src/main/java/com/objectcomputing/checkins/services/volunteering/VolunteeringRelationshipRepository.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ JOIN volunteering_organization AS org USING(organization_id)
2121
AND rel.member_id = :memberId
2222
AND (rel.is_active = TRUE OR :includeDeactivated = TRUE)
2323
AND (org.is_active = TRUE OR :includeDeactivated = TRUE)
24-
ORDER BY rel.start_date, org.name""", nativeQuery = true)
24+
ORDER BY org.name""", nativeQuery = true)
2525
List<VolunteeringRelationship> findByMemberIdAndOrganizationId(UUID memberId, UUID organizationId, boolean includeDeactivated);
2626

2727
@Query(value = """
@@ -31,7 +31,7 @@ JOIN volunteering_organization AS org USING(organization_id)
3131
WHERE rel.member_id = :memberId
3232
AND (rel.is_active = TRUE OR :includeDeactivated = TRUE)
3333
AND (org.is_active = TRUE OR :includeDeactivated = TRUE)
34-
ORDER BY rel.start_date, org.name""", nativeQuery = true)
34+
ORDER BY org.name""", nativeQuery = true)
3535
List<VolunteeringRelationship> findByMemberId(UUID memberId, boolean includeDeactivated);
3636

3737
@Query(value = """
@@ -41,7 +41,7 @@ JOIN volunteering_organization AS org USING(organization_id)
4141
WHERE rel.organization_id = :organizationId
4242
AND (rel.is_active = TRUE OR :includeDeactivated = TRUE)
4343
AND (org.is_active = TRUE OR :includeDeactivated = TRUE)
44-
ORDER BY rel.start_date, org.name""", nativeQuery = true)
44+
ORDER BY org.name""", nativeQuery = true)
4545
List<VolunteeringRelationship> findByOrganizationId(UUID organizationId, boolean includeDeactivated);
4646

4747
@Query(value = """
@@ -50,7 +50,7 @@ JOIN volunteering_organization AS org USING(organization_id)
5050
JOIN volunteering_organization AS org USING(organization_id)
5151
WHERE (rel.is_active = TRUE OR :includeDeactivated = TRUE)
5252
AND (org.is_active = TRUE OR :includeDeactivated = TRUE)
53-
ORDER BY rel.start_date, org.name""", nativeQuery = true)
53+
ORDER BY org.name""", nativeQuery = true)
5454
List<VolunteeringRelationship> findAll(boolean includeDeactivated);
5555

5656
@Query(value = """

server/src/test/java/com/objectcomputing/checkins/services/reviews/ReviewAssignmentControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ void testGETFindAssignmentsByPeriodIdDefaultAssignments() {
147147
final HttpResponse<Set<ReviewAssignment>> response = client.toBlocking().exchange(request, Argument.setOf(ReviewAssignment.class));
148148

149149
assertNotNull(response.body());
150-
assertEquals(3, Objects.requireNonNull(response.body()).size());
150+
assertEquals(3, (response.body()).size());
151151
assertTrue(response.body().stream().anyMatch(ra -> ra.getRevieweeId().equals(memberOne.getId())));
152152
assertTrue(response.body().stream().anyMatch(ra -> ra.getRevieweeId().equals(memberTwo.getId())));
153153
assertTrue(response.body().stream().anyMatch(ra -> ra.getRevieweeId().equals(memberThree.getId())));

0 commit comments

Comments
 (0)