Update Mockito to 3.2.4 and Mockito-Kotlin to 2.2.0
This commit is contained in:
parent
28f411f3d4
commit
9b2b82eee6
22 changed files with 36 additions and 36 deletions
|
@ -17,7 +17,7 @@ dependencies {
|
|||
testImplementation "junit:junit:${versions.junit}"
|
||||
testImplementation "com.google.truth:truth:${versions.truth}"
|
||||
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
||||
testImplementation "com.nhaarman:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "org.koin:koin-test:${versions.koin}"
|
||||
}
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ import com.fsck.k9.mail.AuthType
|
|||
import com.fsck.k9.mail.ConnectionSecurity
|
||||
import com.fsck.k9.mail.transport.smtp.SmtpTransportUriDecoder
|
||||
import com.google.common.truth.Truth.assertThat
|
||||
import com.nhaarman.mockito_kotlin.doAnswer
|
||||
import com.nhaarman.mockito_kotlin.mock
|
||||
import com.nhaarman.mockitokotlin2.doAnswer
|
||||
import com.nhaarman.mockitokotlin2.mock
|
||||
import org.junit.Test
|
||||
import org.mockito.ArgumentMatchers.anyString
|
||||
import org.robolectric.RuntimeEnvironment
|
||||
|
|
|
@ -38,7 +38,7 @@ dependencies {
|
|||
testImplementation "junit:junit:${versions.junit}"
|
||||
testImplementation "com.google.truth:truth:${versions.truth}"
|
||||
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
||||
testImplementation "com.nhaarman:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "org.jdom:jdom2:2.0.6"
|
||||
testImplementation "org.koin:koin-test:${versions.koin}"
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.fsck.k9
|
||||
|
||||
import com.nhaarman.mockito_kotlin.whenever
|
||||
import com.nhaarman.mockitokotlin2.whenever
|
||||
import java.util.Calendar
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
|
|
|
@ -5,7 +5,7 @@ import com.fsck.k9.crypto.EncryptionExtractor
|
|||
import com.fsck.k9.preferences.InMemoryStoragePersister
|
||||
import com.fsck.k9.preferences.StoragePersister
|
||||
import com.fsck.k9.storage.storageModule
|
||||
import com.nhaarman.mockito_kotlin.mock
|
||||
import com.nhaarman.mockitokotlin2.mock
|
||||
import org.koin.dsl.module
|
||||
|
||||
class TestApp : Application() {
|
||||
|
|
|
@ -11,8 +11,8 @@ import com.fsck.k9.mail.Address
|
|||
import com.fsck.k9.mail.Message
|
||||
import com.fsck.k9.mail.Message.RecipientType
|
||||
import com.google.common.truth.Truth.assertThat
|
||||
import com.nhaarman.mockito_kotlin.doReturn
|
||||
import com.nhaarman.mockito_kotlin.mock
|
||||
import com.nhaarman.mockitokotlin2.doReturn
|
||||
import com.nhaarman.mockitokotlin2.mock
|
||||
import java.util.Date
|
||||
import java.util.Locale
|
||||
import org.junit.Before
|
||||
|
|
|
@ -32,7 +32,7 @@ dependencies {
|
|||
testImplementation "junit:junit:${versions.junit}"
|
||||
testImplementation "com.google.truth:truth:${versions.truth}"
|
||||
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
||||
testImplementation "com.nhaarman:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "org.jdom:jdom2:2.0.6"
|
||||
testImplementation "org.koin:koin-test:${versions.koin}"
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import androidx.lifecycle.Lifecycle
|
|||
import androidx.lifecycle.LifecycleOwner
|
||||
import com.fsck.k9.ui.endtoend.AutocryptKeyTransferActivity
|
||||
import com.fsck.k9.ui.endtoend.AutocryptKeyTransferPresenter
|
||||
import com.nhaarman.mockito_kotlin.doReturn
|
||||
import com.nhaarman.mockito_kotlin.mock
|
||||
import com.nhaarman.mockitokotlin2.doReturn
|
||||
import com.nhaarman.mockitokotlin2.mock
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.koin.core.KoinApplication
|
||||
|
|
|
@ -25,7 +25,7 @@ dependencies {
|
|||
testImplementation "junit:junit:${versions.junit}"
|
||||
testImplementation "com.google.truth:truth:${versions.truth}"
|
||||
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
||||
testImplementation "com.nhaarman:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "org.jdom:jdom2:2.0.6"
|
||||
testImplementation "org.koin:koin-test:${versions.koin}"
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import androidx.lifecycle.Lifecycle
|
|||
import androidx.lifecycle.LifecycleOwner
|
||||
import com.fsck.k9.ui.endtoend.AutocryptKeyTransferActivity
|
||||
import com.fsck.k9.ui.endtoend.AutocryptKeyTransferPresenter
|
||||
import com.nhaarman.mockito_kotlin.doReturn
|
||||
import com.nhaarman.mockito_kotlin.mock
|
||||
import com.nhaarman.mockitokotlin2.doReturn
|
||||
import com.nhaarman.mockitokotlin2.mock
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.koin.core.KoinApplication
|
||||
|
|
|
@ -8,9 +8,9 @@ import com.fsck.k9.controller.MessagingController
|
|||
import com.fsck.k9.search.SearchAccount
|
||||
import com.fsck.k9.ui.messagelist.DefaultFolderProvider
|
||||
import com.google.common.truth.Truth.assertThat
|
||||
import com.nhaarman.mockito_kotlin.any
|
||||
import com.nhaarman.mockito_kotlin.doReturn
|
||||
import com.nhaarman.mockito_kotlin.mock
|
||||
import com.nhaarman.mockitokotlin2.any
|
||||
import com.nhaarman.mockitokotlin2.doReturn
|
||||
import com.nhaarman.mockitokotlin2.mock
|
||||
import org.junit.Test
|
||||
import org.mockito.ArgumentMatchers.eq
|
||||
import org.robolectric.RuntimeEnvironment
|
||||
|
|
|
@ -16,7 +16,7 @@ dependencies {
|
|||
testImplementation "org.robolectric:robolectric:${versions.robolectric}"
|
||||
testImplementation "junit:junit:${versions.junit}"
|
||||
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
||||
testImplementation "com.nhaarman:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "org.koin:koin-test:${versions.koin}"
|
||||
testImplementation "commons-io:commons-io:${versions.commonsIo}"
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package com.fsck.k9.preferences
|
||||
|
||||
import com.fsck.k9.storage.K9RobolectricTest
|
||||
import com.nhaarman.mockito_kotlin.verifyNoMoreInteractions
|
||||
import com.nhaarman.mockito_kotlin.whenever
|
||||
import com.nhaarman.mockitokotlin2.verifyNoMoreInteractions
|
||||
import com.nhaarman.mockitokotlin2.whenever
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
|
|
|
@ -4,12 +4,12 @@ import android.content.Context
|
|||
import com.fsck.k9.preferences.K9StoragePersister.StoragePersistOperationCallback
|
||||
import com.fsck.k9.preferences.K9StoragePersister.StoragePersistOperations
|
||||
import com.fsck.k9.storage.K9RobolectricTest
|
||||
import com.nhaarman.mockito_kotlin.any
|
||||
import com.nhaarman.mockito_kotlin.inOrder
|
||||
import com.nhaarman.mockito_kotlin.never
|
||||
import com.nhaarman.mockito_kotlin.spy
|
||||
import com.nhaarman.mockito_kotlin.verify
|
||||
import com.nhaarman.mockito_kotlin.verifyNoMoreInteractions
|
||||
import com.nhaarman.mockitokotlin2.any
|
||||
import com.nhaarman.mockitokotlin2.inOrder
|
||||
import com.nhaarman.mockitokotlin2.never
|
||||
import com.nhaarman.mockitokotlin2.spy
|
||||
import com.nhaarman.mockitokotlin2.verify
|
||||
import com.nhaarman.mockitokotlin2.verifyNoMoreInteractions
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertSame
|
||||
import org.junit.Assert.assertTrue
|
||||
|
|
|
@ -10,7 +10,7 @@ import com.fsck.k9.coreModules
|
|||
import com.fsck.k9.crypto.EncryptionExtractor
|
||||
import com.fsck.k9.preferences.K9StoragePersister
|
||||
import com.fsck.k9.preferences.StoragePersister
|
||||
import com.nhaarman.mockito_kotlin.mock
|
||||
import com.nhaarman.mockitokotlin2.mock
|
||||
import org.koin.dsl.module
|
||||
|
||||
class TestApp : Application() {
|
||||
|
|
|
@ -5,8 +5,8 @@ import com.fsck.k9.Account
|
|||
import com.fsck.k9.mailstore.MigrationsHelper
|
||||
import com.fsck.k9.mailstore.StorageManager
|
||||
import com.fsck.k9.storage.RobolectricTest
|
||||
import com.nhaarman.mockito_kotlin.doReturn
|
||||
import com.nhaarman.mockito_kotlin.mock
|
||||
import com.nhaarman.mockitokotlin2.doReturn
|
||||
import com.nhaarman.mockitokotlin2.mock
|
||||
import java.io.ByteArrayInputStream
|
||||
import org.apache.commons.io.IOUtils
|
||||
import org.apache.james.mime4j.codec.QuotedPrintableInputStream
|
||||
|
|
|
@ -11,7 +11,7 @@ dependencies {
|
|||
api "org.robolectric:robolectric:${versions.robolectric}"
|
||||
api "org.koin:koin-core:${versions.koin}"
|
||||
api "org.mockito:mockito-core:${versions.mockito}"
|
||||
api "com.nhaarman:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
api "com.nhaarman.mockitokotlin2:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
|
@ -56,7 +56,7 @@ dependencies {
|
|||
testImplementation "junit:junit:${versions.junit}"
|
||||
testImplementation "com.google.truth:truth:${versions.truth}"
|
||||
testImplementation "org.mockito:mockito-core:${versions.mockito}"
|
||||
testImplementation "com.nhaarman:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:${versions.mockitoKotlin}"
|
||||
testImplementation "org.jdom:jdom2:2.0.6"
|
||||
testImplementation "org.koin:koin-test:${versions.koin}"
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ import android.app.Application
|
|||
import com.fsck.k9.preferences.InMemoryStoragePersister
|
||||
import com.fsck.k9.preferences.StoragePersister
|
||||
import com.fsck.k9.storage.storageModule
|
||||
import com.nhaarman.mockito_kotlin.mock
|
||||
import com.nhaarman.mockitokotlin2.mock
|
||||
import org.koin.dsl.module
|
||||
|
||||
class TestApp : Application() {
|
||||
|
|
|
@ -23,7 +23,7 @@ import com.fsck.k9.ui.ContactBadge
|
|||
import com.fsck.k9.ui.R
|
||||
import com.fsck.k9.ui.messagelist.MessageListAppearance
|
||||
import com.fsck.k9.ui.messagelist.MessageListItem
|
||||
import com.nhaarman.mockito_kotlin.mock
|
||||
import com.nhaarman.mockitokotlin2.mock
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertNull
|
||||
|
|
|
@ -27,7 +27,7 @@ import com.fsck.k9.mail.internet.TextBody
|
|||
import com.fsck.k9.message.MessageBuilder.Callback
|
||||
import com.fsck.k9.message.quote.InsertableHtmlContent
|
||||
import com.fsck.k9.view.RecipientSelectView
|
||||
import com.nhaarman.mockito_kotlin.anyOrNull
|
||||
import com.nhaarman.mockitokotlin2.anyOrNull
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.io.IOException
|
||||
import java.io.OutputStream
|
||||
|
|
|
@ -32,8 +32,8 @@ buildscript {
|
|||
'androidxTestRunner': '1.1.1',
|
||||
'junit': '4.12',
|
||||
'robolectric': '4.2.1',
|
||||
'mockito': '2.18.0',
|
||||
'mockitoKotlin': '1.5.0',
|
||||
'mockito': '3.2.4',
|
||||
'mockitoKotlin': '2.2.0',
|
||||
'truth': '0.35'
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in a new issue