isCalledExactly(1) -> isCalledOnce()

This commit is contained in:
Benoit Marty 2024-05-22 15:26:01 +02:00 committed by Benoit Marty
parent 3bde744d76
commit fe771a37c2
7 changed files with 61 additions and 65 deletions

View file

@ -57,9 +57,9 @@ class DefaultJoinRoomTest {
.isNeverCalled()
joinRoomLambda
.assertions()
.isCalledExactly(1)
.withSequence(
listOf(value(A_ROOM_ID))
.isCalledOnce()
.with(
value(A_ROOM_ID)
)
assertThat(analyticsService.capturedEvents).containsExactly(
roomResult.toAnalyticsJoinedRoom(aTrigger)
@ -88,9 +88,9 @@ class DefaultJoinRoomTest {
sut.invoke(A_ROOM_ID, A_SERVER_LIST, aTrigger)
joinRoomByIdOrAliasLambda
.assertions()
.isCalledExactly(1)
.withSequence(
listOf(value(A_ROOM_ID), value(A_SERVER_LIST))
.isCalledOnce()
.with(
value(A_ROOM_ID), value(A_SERVER_LIST)
)
joinRoomLambda
.assertions()