Skip to content

Commit

Permalink
Remove duplicate test
Browse files Browse the repository at this point in the history
  • Loading branch information
SMadani committed Jun 26, 2024
1 parent b5f2800 commit f2f4f6d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/test/kotlin/com/vonage/client/kt/MessagesTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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<String, Any> =
Expand Down

0 comments on commit f2f4f6d

Please sign in to comment.