From f2f4f6d24934dfad45e52b20274bce6b5f5efe98 Mon Sep 17 00:00:00 2001 From: Sina Madani Date: Wed, 26 Jun 2024 11:24:45 +0100 Subject: [PATCH] Remove duplicate test --- src/test/kotlin/com/vonage/client/kt/MessagesTest.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/kotlin/com/vonage/client/kt/MessagesTest.kt b/src/test/kotlin/com/vonage/client/kt/MessagesTest.kt index 9f05f3f..aaed936 100644 --- a/src/test/kotlin/com/vonage/client/kt/MessagesTest.kt +++ b/src/test/kotlin/com/vonage/client/kt/MessagesTest.kt @@ -16,7 +16,6 @@ import kotlin.test.assertNotNull class MessagesTest : AbstractTest() { private val messagesClient = vonageClient.messages private val sendUrl = "/v1/messages" - private val sandboxUrl = "https://messages-sandbox.nexmo.com$sendUrl" private val messageUuid = testUuid private val mmsChannel = "mms" private val whatsappChannel = "whatsapp" @@ -38,8 +37,10 @@ class MessagesTest : AbstractTest() { mockJsonJwtPost(sendUrl, expectedBodyParams, status, expectedResponseParams) assertEquals(messageUuid, messagesClient.send(req)) - mockJsonJwtPost(sandboxUrl, expectedBodyParams, status, expectedResponseParams) - assertEquals(messageUuid, messagesClient.send(req)) + // TODO fix mocking full url + //val sandboxUrl = "https://messages-sandbox.nexmo.com$sendUrl" + //mockJsonJwtPost(sandboxUrl, expectedBodyParams, status, expectedResponseParams) + //assertEquals(messageUuid, messagesClient.sendSandbox(req)) } private fun baseBody(messageType: String, channel: String): Map =