Skip to content

Commit de6ac88

Browse files
authored
fix #2002 update dependency mockk to 1.14.9 and vert.x to 5.0.7 (#2003)
1 parent 24cf46b commit de6ac88

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

bot/connector-web/src/test/kotlin/WebMessageProcessorTest.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import ai.tock.bot.connector.web.WebMessageProcessor
2020
import ai.tock.bot.connector.web.send.QuickReply
2121
import ai.tock.bot.engine.action.SendSentence
2222
import ai.tock.bot.engine.user.PlayerId
23-
import org.junit.Test
24-
import org.junit.jupiter.api.Assertions
23+
import org.junit.jupiter.api.Assertions.assertEquals
24+
import org.junit.jupiter.api.Test
2525

2626
class WebMessageProcessorTest {
2727
private val markdownText = "Hello *user*"
@@ -32,15 +32,15 @@ class WebMessageProcessorTest {
3232
val playerId = PlayerId("")
3333
val action = SendSentence(playerId, "", playerId, markdownText)
3434
val messageProcessor = WebMessageProcessor(false)
35-
Assertions.assertEquals(WebMessage(markdownText), messageProcessor.process(action))
35+
assertEquals(WebMessage(markdownText, actionId = action.id.toString()), messageProcessor.process(action))
3636
}
3737

3838
@Test
3939
fun `simple web messages get rendered as HTML when markdown is enabled`() {
4040
val playerId = PlayerId("")
4141
val action = SendSentence(playerId, "", playerId, markdownText)
4242
val messageProcessor = WebMessageProcessor(true)
43-
Assertions.assertEquals(WebMessage(renderedText), messageProcessor.process(action))
43+
assertEquals(WebMessage(renderedText, actionId = action.id.toString()), messageProcessor.process(action))
4444
}
4545

4646
@Test
@@ -49,6 +49,6 @@ class WebMessageProcessorTest {
4949
val quickReplies = listOf(QuickReply("QR", null, null))
5050
val action = SendSentence(playerId, "", playerId, null, mutableListOf(WebMessage(markdownText, quickReplies)))
5151
val messageProcessor = WebMessageProcessor(true)
52-
Assertions.assertEquals(WebMessage(renderedText, quickReplies), messageProcessor.process(action))
52+
assertEquals(WebMessage(renderedText, quickReplies, actionId = action.id.toString()), messageProcessor.process(action))
5353
}
5454
}

bot/storage-mongo/src/test/kotlin/StoryDefinitionConfigurationMongoDAOTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package ai.tock.bot.mongo
1818

1919
import ai.tock.bot.mongo.StoryDefinitionConfigurationMongoDAO.customRegexToFindWord
20-
import junit.framework.TestCase.assertEquals
20+
import org.junit.jupiter.api.Assertions.assertEquals
2121
import org.junit.jupiter.api.Test
2222

2323
class StoryDefinitionConfigurationMongoDAOTest : AbstractTest() {

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<jackson-data>0.4.0</jackson-data>
5050
<jackson-generator>0.4.0</jackson-generator>
5151
<klaxon>5.6</klaxon>
52-
<vertx>5.0.4</vertx>
52+
<vertx>5.0.7</vertx>
5353
<retrofit>3.0.0</retrofit>
5454
<okhttp>5.2.0</okhttp>
5555
<okhttp-signpost>1.1.0</okhttp-signpost>
@@ -83,7 +83,7 @@
8383
<junit-jupiter>6.0.0</junit-jupiter>
8484
<testcontainer>1.21.3</testcontainer>
8585

86-
<mockk>1.14.6</mockk>
86+
<mockk>1.14.9</mockk>
8787
<assertj>3.22.0</assertj>
8888
<byte-buddy>1.17.8</byte-buddy>
8989
<atrium>1.2.0</atrium>

0 commit comments

Comments
 (0)