mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 23:25:20 +03:00
Replace deprecated methods
Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
parent
a7e70701d9
commit
c854d8c3ae
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@ import com.nextcloud.talk.R
|
||||||
import com.nextcloud.talk.models.database.UserEntity
|
import com.nextcloud.talk.models.database.UserEntity
|
||||||
import com.nextcloud.talk.models.json.conversations.Conversation
|
import com.nextcloud.talk.models.json.conversations.Conversation
|
||||||
import com.nextcloud.talk.utils.database.user.UserUtils
|
import com.nextcloud.talk.utils.database.user.UserUtils
|
||||||
import junit.framework.Assert.assertEquals
|
|
||||||
import org.junit.Assert
|
import org.junit.Assert
|
||||||
|
import org.junit.Assert.assertEquals
|
||||||
import org.junit.Before
|
import org.junit.Before
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.junit.runner.RunWith
|
import org.junit.runner.RunWith
|
||||||
|
@ -63,7 +63,7 @@ class ShareUtilsTest {
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
fun setUp() {
|
fun setUp() {
|
||||||
MockitoAnnotations.initMocks(this)
|
MockitoAnnotations.openMocks(this)
|
||||||
PowerMockito.mockStatic(TextUtils::class.java)
|
PowerMockito.mockStatic(TextUtils::class.java)
|
||||||
Mockito.`when`(userUtils!!.currentUser).thenReturn(userEntity)
|
Mockito.`when`(userUtils!!.currentUser).thenReturn(userEntity)
|
||||||
Mockito.`when`(userEntity!!.baseUrl).thenReturn(baseUrl)
|
Mockito.`when`(userEntity!!.baseUrl).thenReturn(baseUrl)
|
||||||
|
|
Loading…
Reference in a new issue