mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-24 06:00:49 +01:00
fix ShareUtilsTest
fix to not assume baseUrl can't be null for mockito 'when' condition Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
1612639b2e
commit
abe9a9d5fb
@ -55,7 +55,7 @@ class ShareUtilsTest {
|
||||
fun setUp() {
|
||||
MockitoAnnotations.openMocks(this)
|
||||
Mockito.`when`(userManager!!.currentUser).thenReturn(Maybe.just(user))
|
||||
Mockito.`when`(user!!.baseUrl!!).thenReturn(baseUrl)
|
||||
Mockito.`when`(user!!.baseUrl).thenReturn(baseUrl)
|
||||
Mockito.`when`(context!!.resources).thenReturn(resources)
|
||||
Mockito.`when`(resources!!.getString(R.string.nc_share_text))
|
||||
.thenReturn("Join the conversation at %1\$s/index.php/call/%2\$s")
|
||||
|
Loading…
Reference in New Issue
Block a user