From cc1c70b0a92f3abb8b91e1fbcf9d8b3fbc0adeb7 Mon Sep 17 00:00:00 2001 From: Sina Madani Date: Mon, 21 Oct 2024 14:25:48 +0100 Subject: [PATCH] test: Fix MessagesTest inline with 8.12.0 --- src/test/kotlin/com/vonage/client/kt/MessagesTest.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/test/kotlin/com/vonage/client/kt/MessagesTest.kt b/src/test/kotlin/com/vonage/client/kt/MessagesTest.kt index 003e37a..fcd8407 100644 --- a/src/test/kotlin/com/vonage/client/kt/MessagesTest.kt +++ b/src/test/kotlin/com/vonage/client/kt/MessagesTest.kt @@ -235,16 +235,17 @@ class MessagesTest : AbstractTest() { fun `send Viber video`() { val duration = 23 val fileSize = 7 - val ttl = 90 // TODO fix in Java SDK + val ttl = 90 val thumbUrl = "https://example.com/file1.jpg" testSend(videoBody(viberChannel, captionMap + mapOf("thumb_url" to thumbUrl)) + mapOf(viberChannel to mapOf( "category" to "transaction", "duration" to duration, + "ttl" to ttl, "file_size" to fileSize )), viberVideo { - from(altNumber); to(toNumber); url(videoUrl); caption(caption); - category(Category.TRANSACTION); duration(duration) + from(altNumber); to(toNumber); url(videoUrl); caption(caption) + category(Category.TRANSACTION); duration(duration); ttl(ttl) fileSize(fileSize); thumbUrl(thumbUrl) } ) @@ -398,7 +399,7 @@ class MessagesTest : AbstractTest() { val params = whatsappCustomBody(mapOf( "type" to "location", "location" to mapOf( - "lat" to latitude, "long" to longitude, + "latitude" to latitude, "longitude" to longitude, "name" to name, "address" to address ) )