File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed
src/main/kotlin/com/nhaarman/mockito_kotlin Expand file tree Collapse file tree 3 files changed +2
-4
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.0.52 -beta"
23
+ compile " org.mockito:mockito-core:2.0.99 -beta"
24
24
25
25
/* Tests */
26
26
testCompile " junit:junit:4.12"
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ private fun <T : Any> KType.createNullableInstance(): T? {
177
177
private fun <T > Class<T>.uncheckedMock (): T {
178
178
val impl = MockSettingsImpl <T >().defaultAnswer(Answers .RETURNS_DEFAULTS ) as MockSettingsImpl <T >
179
179
val creationSettings = impl.confirm(this )
180
- return MockUtil () .createMock(creationSettings).apply {
180
+ return MockUtil .createMock(creationSettings).apply {
181
181
(this as MockMethodInterceptor .MockAccess ).mockitoInterceptor = null
182
182
}
183
183
}
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ import org.mockito.MockingDetails
31
31
import org.mockito.Mockito
32
32
import org.mockito.invocation.InvocationOnMock
33
33
import org.mockito.stubbing.Answer
34
- import org.mockito.stubbing.DeprecatedOngoingStubbing
35
34
import org.mockito.stubbing.OngoingStubbing
36
35
import org.mockito.stubbing.Stubber
37
36
import org.mockito.verification.VerificationMode
@@ -93,7 +92,6 @@ fun <T> same(value: T): T? = Mockito.same(value)
93
92
inline fun <reified T : Any > spy (): T = Mockito .spy(T ::class .java)!!
94
93
fun <T > spy (value : T ): T = Mockito .spy(value)!!
95
94
96
- fun <T > stub (methodCall : T ): DeprecatedOngoingStubbing <T > = Mockito .stub(methodCall)!!
97
95
fun timeout (millis : Long ): VerificationWithTimeout = Mockito .timeout(millis)!!
98
96
fun times (numInvocations : Int ): VerificationMode = Mockito .times(numInvocations)!!
99
97
fun validateMockitoUsage () = Mockito .validateMockitoUsage()
You can’t perform that action at this time.
0 commit comments