add RestTest for findMembershipByNonExistingMemberNumberReturnsEmptyList

This commit is contained in:
Michael Hoennig 2024-11-13 14:56:54 +01:00
parent ff42bc45ab
commit c3f3efaf18

View File

@ -41,7 +41,6 @@ public class HsOfficeMembershipController implements HsOfficeMembershipsApi {
context.define(currentSubject, assumedRoles); context.define(currentSubject, assumedRoles);
final var entities = ( memberNumber != null) final var entities = ( memberNumber != null)
// FIXME: RestTest for the case that findMembershipByMemberNumber returns null
? ofNullable(membershipRepo.findMembershipByMemberNumber(memberNumber)).stream().toList() ? ofNullable(membershipRepo.findMembershipByMemberNumber(memberNumber)).stream().toList()
: membershipRepo.findMembershipsByOptionalPartnerUuid(partnerUuid); : membershipRepo.findMembershipsByOptionalPartnerUuid(partnerUuid);