fix verify title in CancelMembership

This commit is contained in:
Michael Hoennig 2024-11-06 13:37:10 +01:00
parent 2a2b706e6d
commit 82f0e9f4b9

View File

@ -37,7 +37,7 @@ public class CancelMembership extends UseCase<CancelMembership> {
@Override @Override
protected void verify(final UseCase<CancelMembership>.HttpResponse response) { protected void verify(final UseCase<CancelMembership>.HttpResponse response) {
verify( verify(
"Verify That the Membership Got Created", "Verify That the Membership Got Cancelled",
() -> httpGet("/api/hs/office/memberships/%{Membership: %{memberNumber}}") () -> httpGet("/api/hs/office/memberships/%{Membership: %{memberNumber}}")
.expecting(OK).expecting(JSON), .expecting(OK).expecting(JSON),
path("validTo").contains("%{validTo}"), path("validTo").contains("%{validTo}"),