File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/kotlin/com/nhaarman/mockito_kotlin/createinstance Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ buildscript {
1212
1313 dependencies {
1414 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
15- classpath " org.jetbrains.dokka:dokka-gradle-plugin:0.9.14 "
15+ classpath " org.jetbrains.dokka:dokka-gradle-plugin:0.9.17 "
1616 classpath " com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3"
1717 classpath " com.github.dcendents:android-maven-gradle-plugin:1.5"
1818 }
@@ -26,7 +26,7 @@ repositories {
2626dependencies {
2727 compile " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
2828 compile " org.jetbrains.kotlin:kotlin-reflect:$kotlin_version "
29- compile " org.mockito:mockito-core:2.8.9 "
29+ compile " org.mockito:mockito-core:2.18.3 "
3030
3131 /* Tests */
3232 testCompile " junit:junit:4.12"
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ internal class InstanceCreator() : NonNullProvider {
175175 @Suppress(" UNCHECKED_CAST" )
176176 fun <T > Class<T>.uncheckedMock (): T {
177177 val impl = MockSettingsImpl <T >().defaultAnswer(Answers .RETURNS_DEFAULTS ) as MockSettingsImpl <T >
178- val creationSettings = impl.confirm (this )
178+ val creationSettings = impl.setTypeToMock (this )
179179 return MockUtil .createMock(creationSettings).apply {
180180 (this as ? MockAccess )?.mockitoInterceptor = null
181181 }
You can’t perform that action at this time.
0 commit comments