From 80f42fbeece62d91fb49d6e9ebf74d670780eee9 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Portier Date: Wed, 2 Oct 2024 09:56:56 +0200 Subject: [PATCH] refactor (Voice/E2E): PR comments --- .../sdk/e2e/domains/voice/WebhooksEventsSteps.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/test/java/com/sinch/sdk/e2e/domains/voice/WebhooksEventsSteps.java b/client/src/test/java/com/sinch/sdk/e2e/domains/voice/WebhooksEventsSteps.java index 32f6a754..60d7ae04 100644 --- a/client/src/test/java/com/sinch/sdk/e2e/domains/voice/WebhooksEventsSteps.java +++ b/client/src/test/java/com/sinch/sdk/e2e/domains/voice/WebhooksEventsSteps.java @@ -26,7 +26,7 @@ public class WebhooksEventsSteps { static final String WEBHOOKS_PATH_PREFIX = "/webhooks/voice"; - static final String WEBHOOKS_URL = Config.VOICE_HOST_NAME + WEBHOOKS_PATH_PREFIX + "/"; + static final String WEBHOOKS_URL = Config.VOICE_HOST_NAME + WEBHOOKS_PATH_PREFIX; WebHooksService service; @@ -99,26 +99,26 @@ public void serviceAvailable() { public void sendPieReturn() throws IOException { pieReturn = WebhooksHelper.callURL( - new URL(WEBHOOKS_URL + "pie-return"), service::unserializeWebhooksEvent); + new URL(WEBHOOKS_URL + "/pie-return"), service::unserializeWebhooksEvent); } @When("^I send a request to trigger a \"PIE\" event with a \"sequence\" type$") public void sendPieSequence() throws IOException { pieSequence = WebhooksHelper.callURL( - new URL(WEBHOOKS_URL + "pie-sequence"), service::unserializeWebhooksEvent); + new URL(WEBHOOKS_URL + "/pie-sequence"), service::unserializeWebhooksEvent); } @When("^I send a request to trigger a \"DICE\" event$") public void sendDICEEvent() throws IOException { diceEvent = - WebhooksHelper.callURL(new URL(WEBHOOKS_URL + "dice"), service::unserializeWebhooksEvent); + WebhooksHelper.callURL(new URL(WEBHOOKS_URL + "/dice"), service::unserializeWebhooksEvent); } @When("^I send a request to trigger a \"ACE\" event$") public void sendACEEvent() throws IOException { aceEvent = - WebhooksHelper.callURL(new URL(WEBHOOKS_URL + "ace"), service::unserializeWebhooksEvent); + WebhooksHelper.callURL(new URL(WEBHOOKS_URL + "/ace"), service::unserializeWebhooksEvent); } @Then("the header of the {string} event with a {string} type contains a valid authorization")