File tree Expand file tree Collapse file tree 6 files changed +23
-22
lines changed
main/kotlin/com/nhaarman/mockitokotlin2 Expand file tree Collapse file tree 6 files changed +23
-22
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,16 @@ matrix:
10
10
env : TERM=dumb MOCK_MAKER=mock-maker-inline KOTLIN_VERSION=1.1.61
11
11
- jdk : oraclejdk8
12
12
env : TERM=dumb MOCK_MAKER=mock-maker-inline KOTLIN_VERSION=1.2.50
13
+ - jdk : oraclejdk8
14
+ env : TERM=dumb MOCK_MAKER=mock-maker-inline KOTLIN_VERSION=1.3.0-rc-116
13
15
- jdk : oraclejdk8
14
16
env : TERM=dumb KOTLIN_VERSION=1.0.7
15
17
- jdk : oraclejdk8
16
18
env : TERM=dumb KOTLIN_VERSION=1.1.61
17
19
- jdk : oraclejdk8
18
20
env : TERM=dumb KOTLIN_VERSION=1.2.50
21
+ - jdk : oraclejdk8
22
+ env : TERM=dumb KOTLIN_VERSION=1.3.0-rc-116
19
23
20
24
21
25
env :
Original file line number Diff line number Diff line change @@ -3,11 +3,12 @@ apply from: '../publishing.gradle'
3
3
apply plugin : ' org.jetbrains.dokka'
4
4
5
5
buildscript {
6
- ext. kotlin_version = " 1.2.50 "
6
+ ext. kotlin_version = " 1.3.0-rc-146 "
7
7
8
8
repositories {
9
9
mavenCentral()
10
10
jcenter()
11
+ maven { url ' http://dl.bintray.com/kotlin/kotlin-eap' }
11
12
}
12
13
13
14
dependencies {
@@ -21,21 +22,22 @@ buildscript {
21
22
repositories {
22
23
mavenCentral()
23
24
jcenter()
25
+ maven { url ' http://dl.bintray.com/kotlin/kotlin-eap' }
24
26
}
25
27
26
28
dependencies {
27
29
compileOnly " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
28
- compileOnly ' org.jetbrains.kotlinx:kotlinx-coroutines-core:0.23.3 '
30
+ compileOnly ' org.jetbrains.kotlinx:kotlinx-coroutines-core:0.30.0-eap13 '
29
31
30
- compile " org.mockito:mockito-core:2.21 .0"
32
+ compile " org.mockito:mockito-core:2.23 .0"
31
33
32
34
testCompile ' junit:junit:4.12'
33
35
testCompile ' com.nhaarman:expect.kt:1.0.0'
34
36
35
37
testCompile " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
36
- testCompile ' org.jetbrains.kotlinx:kotlinx-coroutines-core:0.23.3 '
38
+ testCompile ' org.jetbrains.kotlinx:kotlinx-coroutines-core:0.30.0-eap13 '
37
39
38
- testImplementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:0.23.3 "
40
+ testImplementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:0.30.0-eap13 "
39
41
}
40
42
41
43
dokka {
@@ -49,10 +51,3 @@ dokka {
49
51
}
50
52
}
51
53
javadoc. dependsOn dokka
52
-
53
-
54
- kotlin {
55
- experimental {
56
- coroutines " enable"
57
- }
58
- }
Original file line number Diff line number Diff line change 26
26
package com.nhaarman.mockitokotlin2
27
27
28
28
import com.nhaarman.mockitokotlin2.internal.createInstance
29
- import kotlinx.coroutines.experimental. runBlocking
29
+ import kotlinx.coroutines.runBlocking
30
30
import org.mockito.Mockito
31
31
import org.mockito.stubbing.OngoingStubbing
32
32
import kotlin.reflect.KClass
Original file line number Diff line number Diff line change 26
26
package com.nhaarman.mockitokotlin2
27
27
28
28
import com.nhaarman.mockitokotlin2.internal.createInstance
29
- import kotlinx.coroutines.experimental. runBlocking
29
+ import kotlinx.coroutines.runBlocking
30
30
import org.mockito.InOrder
31
31
import org.mockito.Mockito
32
32
import org.mockito.verification.VerificationAfterDelay
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ package test
4
4
5
5
import com.nhaarman.expect.expect
6
6
import com.nhaarman.mockitokotlin2.*
7
- import kotlinx.coroutines.experimental.CommonPool
8
- import kotlinx.coroutines.experimental. delay
9
- import kotlinx.coroutines.experimental. runBlocking
10
- import kotlinx.coroutines.experimental. withContext
7
+ import kotlinx.coroutines.Dispatchers
8
+ import kotlinx.coroutines.delay
9
+ import kotlinx.coroutines.runBlocking
10
+ import kotlinx.coroutines.withContext
11
11
import org.junit.Test
12
12
13
13
@@ -139,7 +139,7 @@ class CoroutinesTest {
139
139
140
140
@Test
141
141
fun verifySuspendMethod () = runBlocking {
142
- val testSubject : SomeInterface = mock()
142
+ val testSubject: SomeInterface = mock()
143
143
144
144
testSubject.suspending()
145
145
@@ -157,9 +157,9 @@ interface SomeInterface {
157
157
158
158
class SomeClass {
159
159
160
- suspend fun result (r : Int ) = withContext(CommonPool ) { r }
160
+ suspend fun result (r : Int ) = withContext(Dispatchers . Default ) { r }
161
161
162
- suspend fun delaying () = withContext(CommonPool ) {
162
+ suspend fun delaying () = withContext(Dispatchers . Default ) {
163
163
delay(100 )
164
164
42
165
165
}
Original file line number Diff line number Diff line change 1
1
buildscript {
2
- ext. kotlin_version = ' 1.2.50'
3
2
ext. kotlin_version = System . getenv(" KOTLIN_VERSION" ) ?: ' 1.0.7'
3
+ ext. kotlin_version = ' 1.3.0-rc-116'
4
4
5
5
repositories {
6
6
mavenCentral()
7
+ maven { url ' http://dl.bintray.com/kotlin/kotlin-eap' }
7
8
}
8
9
dependencies {
9
10
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
@@ -16,6 +17,7 @@ apply plugin: 'kotlin'
16
17
repositories {
17
18
mavenCentral()
18
19
jcenter()
20
+ maven { url ' http://dl.bintray.com/kotlin/kotlin-eap' }
19
21
}
20
22
21
23
dependencies {
You can’t perform that action at this time.
0 commit comments