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 {
12
12
13
13
dependencies {
14
14
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 "
16
16
classpath " com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3"
17
17
classpath " com.github.dcendents:android-maven-gradle-plugin:1.5"
18
18
}
@@ -26,7 +26,7 @@ repositories {
26
26
dependencies {
27
27
compile " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
28
28
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 "
30
30
31
31
/* Tests */
32
32
testCompile " junit:junit:4.12"
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ internal class InstanceCreator() : NonNullProvider {
175
175
@Suppress(" UNCHECKED_CAST" )
176
176
fun <T > Class<T>.uncheckedMock (): T {
177
177
val impl = MockSettingsImpl <T >().defaultAnswer(Answers .RETURNS_DEFAULTS ) as MockSettingsImpl <T >
178
- val creationSettings = impl.confirm (this )
178
+ val creationSettings = impl.setTypeToMock (this )
179
179
return MockUtil .createMock(creationSettings).apply {
180
180
(this as ? MockAccess )?.mockitoInterceptor = null
181
181
}
You can’t perform that action at this time.
0 commit comments