File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/kotlin/com/nhaarman/mockito_kotlin Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ repositories {
20
20
dependencies {
21
21
compile " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
22
22
compile " org.jetbrains.kotlin:kotlin-reflect:$kotlin_version "
23
- compile " org.mockito:mockito-core:2.1.0-RC.1 "
23
+ compile " org.mockito:mockito-core:2.1.0"
24
24
25
25
/* Tests */
26
26
testCompile " junit:junit:4.12"
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ package com.nhaarman.mockito_kotlin
27
27
28
28
import org.mockito.Answers
29
29
import org.mockito.internal.creation.MockSettingsImpl
30
- import org.mockito.internal.creation.bytebuddy.MockMethodInterceptor
30
+ import org.mockito.internal.creation.bytebuddy.MockAccess
31
31
import org.mockito.internal.util.MockUtil
32
32
import java.lang.reflect.InvocationTargetException
33
33
import java.lang.reflect.Modifier
@@ -172,6 +172,6 @@ private fun <T> Class<T>.uncheckedMock(): T {
172
172
val impl = MockSettingsImpl <T >().defaultAnswer(Answers .RETURNS_DEFAULTS ) as MockSettingsImpl <T >
173
173
val creationSettings = impl.confirm(this )
174
174
return MockUtil .createMock(creationSettings).apply {
175
- (this as MockMethodInterceptor . MockAccess ).mockitoInterceptor = null
175
+ (this as MockAccess ).mockitoInterceptor = null
176
176
}
177
177
}
You can’t perform that action at this time.
0 commit comments