add RestTest for findMembershipByNonExistingMemberNumberReturnsEmptyList
This commit is contained in:
parent
ff42bc45ab
commit
c3f3efaf18
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user