feat: Add getSenderNameByMessageId useCase WPB-11723 #16464
GitHub Actions / Test Results
failed
Dec 17, 2024 in 0s
1 fail, 9 skipped, 2 903 pass in 4m 32s
2 913 tests 2 903 ✅ 4m 32s ⏱️
2 suites 9 💤
2 files 1 ❌
Results for commit b4b66eb.
Annotations
Check warning on line 0 in com.wire.kalium.logic.feature.message.GetSenderNameByMessageIdUseCaseTest
github-actions / Test Results
givenMessageAndConversationId_whenInvokingUseCase_thenShouldCallMessageRepository (com.wire.kalium.logic.feature.message.GetSenderNameByMessageIdUseCaseTest) failed
logic/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 12-_logic-.xml [took 0s]
Raw output
io.mockative.ExactVerificationException: A mock of type Mockable was not invoked the expected number of times.
Expected 1 invocations of getMessageById(<value == valueConvo@domainConvo>, <value == messageId>)
Actual: 0
getSenderNameByMessageId(valueConvo@domainConvo, messageId) =
Left(value=DataNotFound)
at io.mockative.ExactVerifier.verify(ExactVerifier.kt:12)
at io.mockative.Mockable.verify$mockative(Mockable.kt:88)
at io.mockative.Verification.wasInvoked(Verification.kt:22)
at com.wire.kalium.logic.feature.message.GetSenderNameByMessageIdUseCaseTest$givenMessageAndConversationId_whenInvokingUseCase_thenShouldCallMessageRepository$1.invokeSuspend(GetSenderNameByMessageIdUseCaseTest.kt:53)
at com.wire.kalium.logic.feature.message.GetSenderNameByMessageIdUseCaseTest$givenMessageAndConversationId_whenInvokingUseCase_thenShouldCallMessageRepository$1.invoke(Unknown Source:8)
at com.wire.kalium.logic.feature.message.GetSenderNameByMessageIdUseCaseTest$givenMessageAndConversationId_whenInvokingUseCase_thenShouldCallMessageRepository$1.invoke(Unknown Source:4)
at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$1.invokeSuspend(TestBuilders.kt:316)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.test.TestDispatcher.processEvent$kotlinx_coroutines_test(TestDispatcher.kt:24)
at kotlinx.coroutines.test.TestCoroutineScheduler.tryRunNextTaskUnless$kotlinx_coroutines_test(TestCoroutineScheduler.kt:99)
at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$workRunner$1.invokeSuspend(TestBuilders.kt:322)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:277)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:95)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:69)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source:1)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:48)
at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source:1)
at kotlinx.coroutines.test.TestBuildersJvmKt.createTestResult(TestBuildersJvm.kt:10)
at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt.runTest-8Mi8wO0(TestBuilders.kt:310)
at kotlinx.coroutines.test.TestBuildersKt.runTest-8Mi8wO0(Unknown Source:1)
at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt.runTest-8Mi8wO0(TestBuilders.kt:168)
at kotlinx.coroutines.test.TestBuildersKt.runTest-8Mi8wO0(Unknown Source:1)
at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt.runTest-8Mi8wO0$default(TestBuilders.kt:160)
at kotlinx.coroutines.test.TestBuildersKt.runTest-8Mi8wO0$default(Unknown Source:1)
at com.wire.kalium.logic.feature.message.GetSenderNameByMessageIdUseCaseTest.givenMessageAndConversationId_whenInvokingUseCase_thenShouldCallMessageRepository(GetSenderNameByMessageIdUseCaseTest.kt:44)
Loading