Skip to content

Commit

Permalink
Merge pull request #276 from kennethshackleton/dependency-updates
Browse files Browse the repository at this point in the history
Dependency updates
  • Loading branch information
kennethshackleton authored Jan 5, 2022
2 parents 95bbc3a + a8511a2 commit ac07d3a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import org.mockito.kotlin.mock
import org.mockito.kotlin.same
import org.mockito.kotlin.times
import org.mockito.kotlin.verify
import org.mockito.kotlin.verifyZeroInteractions
import org.mockito.kotlin.verifyNoInteractions
import org.mockito.kotlin.whenever
import org.mockito.stubbing.Answer
import java.io.IOException
Expand Down Expand Up @@ -343,7 +343,7 @@ internal class CommonObjectPoolTest {
val obj = PooledObject()
whenever(other.borrowObjectOrNull()) doReturn obj
repeat(configuration.maxTotal) { borrowObject() }
verifyZeroInteractions(other)
verifyNoInteractions(other)
borrowObject()
verify(other, times(1)).borrowObjectOrNull()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import org.mockito.kotlin.mock
import org.mockito.kotlin.same
import org.mockito.kotlin.times
import org.mockito.kotlin.verify
import org.mockito.kotlin.verifyZeroInteractions
import org.mockito.kotlin.verifyNoInteractions
import org.mockito.kotlin.whenever
import java.util.concurrent.TimeUnit

Expand All @@ -41,21 +41,21 @@ internal class TieredObjectPoolTest {
fun borrowPrimaryObject() {
pool.borrowPrimaryObject()
verify(singleObjectPool, times(1)).borrowObject()
verifyZeroInteractions(commonObjectPool)
verifyNoInteractions(commonObjectPool)
}

@Test
fun borrowSecondaryObjectKeyed() {
val key = ""
pool.borrowObject(key)
verifyZeroInteractions(singleObjectPool)
verifyNoInteractions(singleObjectPool)
verify(commonObjectPool, times(1)).borrowObject(same(key))
}

@Test
fun borrowSecondaryObject() {
pool.borrowObject()
verifyZeroInteractions(singleObjectPool)
verifyNoInteractions(singleObjectPool)
verify(commonObjectPool, times(1)).borrowObject()
}

Expand All @@ -73,7 +73,7 @@ internal class TieredObjectPoolTest {
}
pool.returnObject(obj)
verify(singleObjectPool, times(1)).returnObject(same(obj))
verifyZeroInteractions(commonObjectPool)
verifyNoInteractions(commonObjectPool)
}

@Test
Expand All @@ -83,7 +83,7 @@ internal class TieredObjectPoolTest {
}
pool.returnObject(obj)
verify(commonObjectPool, times(1)).returnObject(same(obj))
verifyZeroInteractions(singleObjectPool)
verifyNoInteractions(singleObjectPool)
}

@Test
Expand Down
20 changes: 10 additions & 10 deletions buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@ enum class Versions(
ANDROID_SDK("31", URL("https://developer.android.com/sdk")),
ANDROIDX_LIVE_DATA("2.2.0", URL("https://developer.android.com/topic/libraries/architecture/livedata")),
ANDROIDX_ROOM("2.2.5", URL("https://developer.android.com/jetpack/androidx/releases/room")),
ASSERT_J("3.20.2", URL("https://joel-costigliola.github.io/assertj")),
ASSERT_J("3.22.0", URL("https://joel-costigliola.github.io/assertj")),
CMAKE("3.18.1", URL("https://cmake.org")),
DETEKT("1.18.0", URL("https://github.com/arturbosch/detekt")),
DOKKA("1.6.0", URL("https://github.com/Kotlin/dokka")),
DETEKT("1.19.0", URL("https://github.com/arturbosch/detekt")),
DOKKA("1.6.10", URL("https://github.com/Kotlin/dokka")),
GRADLE_LICENSEE_PLUGIN("1.1.0", URL("https://github.com/cashapp/licensee")),
JACOCO("0.8.7", URL("https://www.jacoco.org/jacoco/trunk/doc/changes.html")),
JMH("1.33", URL("https://openjdk.java.net/projects/code-tools/jmh/")),
JMH("1.34", URL("https://openjdk.java.net/projects/code-tools/jmh/")),
JSR_305("3.0.2", URL("https://code.google.com/archive/p/jsr-305/")),
JUNIT4("4.13.1", URL("https://github.com/junit-team/junit4")),
JUNIT5("5.7.2", URL("https://junit.org/junit5/")),
JUNIT5_PLATFORM("1.7.2", URL("https://junit.org/junit5/")),
KOTLIN("1.6.10", URL("https://github.com/JetBrains/kotlin")),
KOTLIN_COROUTINES("1.5.1", URL("https://github.com/Kotlin/kotlinx.coroutines")),
KOTLIN_COROUTINES("1.5.2", URL("https://github.com/Kotlin/kotlinx.coroutines")),
KOTLIN_TEST("1.4.32", URL("https://github.com/JetBrains/kotlin")),
KTLINT("0.42.1", URL("https://github.com/pinterest/ktlint")),
KTLINT_GRADLE_PLUGIN("10.2.0", URL("https://github.com/JLLeitschuh/ktlint-gradle")),
MOCKITO("3.11.2", URL("https://github.com/mockito/mockito")),
MOCKITO_KOTLIN("3.2.0", URL("https://github.com/nhaarman/mockito-kotlin")),
KTLINT("0.43.2", URL("https://github.com/pinterest/ktlint")),
KTLINT_GRADLE_PLUGIN("10.2.1", URL("https://github.com/JLLeitschuh/ktlint-gradle")),
MOCKITO("4.0.0", URL("https://github.com/mockito/mockito")),
MOCKITO_KOTLIN(MOCKITO.version, URL("https://github.com/mockito/mockito-kotlin")),
NEXUS_PLUGIN("1.1.0", URL("https://github.com/gradle-nexus/publish-plugin")),
ROBOLECTRIC("4.7.2", URL("https://github.com/robolectric/robolectric"));
ROBOLECTRIC("4.7.3", URL("https://github.com/robolectric/robolectric"));

override fun toString() = version

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip

0 comments on commit ac07d3a

Please sign in to comment.