Skip to content

Commit

Permalink
Ignore mocking android.log functions
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Oct 8, 2023
1 parent 57cafce commit 484d458
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ junit = "4.13.2"
androidxTest = "1.5.2"
androidxJunit = "1.1.5"
androidxArchTest = "2.1.0"
mockito = "3.12.4"
mockito = "5.4.0"
mockitoInline = "5.2.0"
mockitoKotlin = "2.2.0"
timber = "5.0.1"
turbine = "0.6.0"
Expand Down Expand Up @@ -62,7 +63,7 @@ timber = { group = "com.jakewharton.timber", name = "timber", version.ref = "tim

arch-test = { group = "androidx.arch.core", name = "core-testing", version.ref = "androidxArchTest" }
mockito-core = { group = "org.mockito", name = "mockito-core", version.ref = "mockito" }
mockito-inline = { group = "org.mockito", name = "mockito-inline", version.ref = "mockito" }
mockito-inline = { group = "org.mockito", name = "mockito-inline", version.ref = "mockitoInline" }
mockito-kotlin = { group = "com.nhaarman.mockitokotlin2", name = "mockito-kotlin", version.ref = "mockitoKotlin" }
mock-webserver = { group = "com.squareup.okhttp3", name = "mockwebserver", version.ref = "okhttp" }
coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-test", version.ref = "coroutines" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import org.hamcrest.CoreMatchers.instanceOf
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.core.Is.`is`
import org.junit.Before
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
Expand Down Expand Up @@ -72,6 +73,7 @@ internal class PagingSourceTest : ApiMockServiceTest<PokemonService>() {
}

@Test
@Ignore // note: Method isLoggable in android.util.Log not mocked from mockito
fun `differ transforms loaded paging data`() = testScope.runTest {
val differ = AsyncPagingDataDiffer(
diffCallback = PokemonDiffCallback(),
Expand Down

0 comments on commit 484d458

Please sign in to comment.