diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/debitor/CreateSepaMandateForDebitor.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/debitor/CreateSepaMandateForDebitor.java index b50cc7c9..62ae5b54 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/debitor/CreateSepaMandateForDebitor.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/debitor/CreateSepaMandateForDebitor.java @@ -17,9 +17,9 @@ public class CreateSepaMandateForDebitor extends UseCase - httpGet("/api/hs/office/debitors?debitorNumber=&{debitorNumber}") + httpGet("/api/hs/office/debitors/%{debitorNumber}") .expecting(OK).expecting(JSON), - response -> response.expectArrayElements(1).getFromBody("[0].uuid") + response -> response.getFromBody("uuid") ); obtain("BankAccount: Test AG - debit bank account", () -> diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/membership/CancelMembership.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/membership/CancelMembership.java index d5d00900..5f3c3196 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/membership/CancelMembership.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/membership/CancelMembership.java @@ -18,9 +18,8 @@ public class CancelMembership extends UseCase { protected HttpResponse run() { obtain("Membership: %{memberNumber}", () -> - httpGet("/api/hs/office/memberships?memberNumber=%{memberNumber}") - .expectArrayElements(1), - response -> response.expectArrayElements(1).getFromBody("[0].uuid") + httpGet("/api/hs/office/memberships/%{memberNumber}"), + response -> response.getFromBody("uuid") ); return withTitle("Patch the New Status Into the Membership", () -> diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/membership/coopassets/CreateCoopAssetsTransaction.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/membership/coopassets/CreateCoopAssetsTransaction.java index beb78b52..1052db28 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/membership/coopassets/CreateCoopAssetsTransaction.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/membership/coopassets/CreateCoopAssetsTransaction.java @@ -18,9 +18,9 @@ public abstract class CreateCoopAssetsTransaction extends UseCase - httpGet("/api/hs/office/memberships?memberNumber=&{memberNumber}") - .expecting(OK).expecting(JSON).expectArrayElements(1), - response -> response.getFromBody("$[0].uuid") + httpGet("/api/hs/office/memberships/%{memberNumber}") + .expecting(OK).expecting(JSON), + response -> response.getFromBody("uuid") ); return withTitle("Create the Coop-Assets-%{transactionType} Transaction", () -> diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/membership/coopshares/CreateCoopSharesTransaction.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/membership/coopshares/CreateCoopSharesTransaction.java index a70cbdf5..6c215b5d 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/membership/coopshares/CreateCoopSharesTransaction.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/membership/coopshares/CreateCoopSharesTransaction.java @@ -18,9 +18,9 @@ public abstract class CreateCoopSharesTransaction extends UseCase - httpGet("/api/hs/office/memberships?memberNumber=&{memberNumber}") - .expecting(OK).expecting(JSON).expectArrayElements(1), - response -> response.getFromBody("$[0].uuid") + httpGet("/api/hs/office/memberships/%{memberNumber}") + .expecting(OK).expecting(JSON), + response -> response.getFromBody("uuid") ); return withTitle("Create the Coop-Shares-%{transactionType} Transaction", () ->