From 22f45ebc99d079a12b71a131575a47abf5fe5e3f Mon Sep 17 00:00:00 2001 From: Andrej Petras Date: Thu, 29 Feb 2024 11:24:50 +0100 Subject: [PATCH] feat: update workspace external api --- .../product/store/bff/rs/ProductsRestControllerTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/tkit/onecx/product/store/bff/rs/ProductsRestControllerTest.java b/src/test/java/org/tkit/onecx/product/store/bff/rs/ProductsRestControllerTest.java index 69315bd..36d6ed5 100644 --- a/src/test/java/org/tkit/onecx/product/store/bff/rs/ProductsRestControllerTest.java +++ b/src/test/java/org/tkit/onecx/product/store/bff/rs/ProductsRestControllerTest.java @@ -14,6 +14,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.mockserver.client.MockServerClient; +import org.mockserver.matchers.Times; import org.mockserver.model.JsonBody; import org.mockserver.model.MediaType; import org.tkit.onecx.product.store.bff.rs.controllers.ProductsRestController; @@ -127,8 +128,7 @@ void getProductByName_test() { // create mock rest endpoint mockServerClient .when(request().withPath("/v1/workspaces/search") - .withMethod(HttpMethod.POST)) - .withPriority(10) + .withMethod(HttpMethod.POST), Times.exactly(1)) .respond(httpRequest -> response().withStatusCode(Response.Status.OK.getStatusCode()) .withContentType(MediaType.APPLICATION_JSON) .withBody(JsonBody.json(result))); @@ -186,8 +186,7 @@ void getProductByName_test() { // create mock rest endpoint mockServerClient .when(request().withPath("/v1/workspaces/search") - .withMethod(HttpMethod.POST)) - .withPriority(11) + .withMethod(HttpMethod.POST), Times.exactly(1)) .respond(httpRequest -> response().withStatusCode(Response.Status.INTERNAL_SERVER_ERROR.getStatusCode())); // create mock rest endpoint