File tree Expand file tree Collapse file tree 3 files changed +10
-12
lines changed
src/test/kotlin/test/inline Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ language: java
5
5
matrix :
6
6
include :
7
7
- jdk : oraclejdk7
8
- env : TERM=dumb MOCK_MAKER=mock-maker-inline KOTLIN_VERSION=1.0.5-3
8
+ env : TERM=dumb MOCK_MAKER=mock-maker-inline KOTLIN_VERSION=1.0.6
9
9
- jdk : oraclejdk7
10
- env : TERM=dumb MOCK_MAKER=mock-maker-inline KOTLIN_VERSION=1.1-M03
10
+ env : TERM=dumb MOCK_MAKER=mock-maker-inline KOTLIN_VERSION=1.1-M04
11
11
- jdk : oraclejdk8
12
- env : TERM=dumb KOTLIN_VERSION=1.0.5-3
12
+ env : TERM=dumb KOTLIN_VERSION=1.0.6
13
13
- jdk : oraclejdk8
14
- env : TERM=dumb KOTLIN_VERSION=1.1-M03
14
+ env : TERM=dumb KOTLIN_VERSION=1.1-M04
15
15
16
16
17
17
env :
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apply from: './publishing.gradle'
3
3
apply plugin : ' org.jetbrains.dokka'
4
4
5
5
buildscript {
6
- ext. kotlin_version = System . getenv(" KOTLIN_VERSION" ) ?: ' 1.0.5-3 '
6
+ ext. kotlin_version = System . getenv(" KOTLIN_VERSION" ) ?: ' 1.0.6 '
7
7
8
8
repositories {
9
9
mavenCentral()
Original file line number Diff line number Diff line change 23
23
*/
24
24
25
25
import com.nhaarman.expect.expect
26
- import com.nhaarman.expect.expectErrorWithMessage
27
26
import com.nhaarman.mockito_kotlin.*
28
27
import com.nhaarman.mockito_kotlin.createinstance.InstanceCreator
29
28
import com.nhaarman.mockito_kotlin.createinstance.mockMakerInlineEnabled
@@ -129,13 +128,12 @@ class UsingMockMakerInlineTest {
129
128
}
130
129
131
130
@Test
132
- fun sealedClass_fails () {
133
- /* Expect */
134
- expectErrorWithMessage( " Could not create " ) on {
131
+ fun sealedMemberClass () {
132
+ /* When */
133
+ val result = createInstance< MySealedClass >()
135
134
136
- /* When */
137
- createInstance<MySealedClass >()
138
- }
135
+ /* Then */
136
+ expect(result).toNotBeNull()
139
137
}
140
138
141
139
@Test
You can’t perform that action at this time.
0 commit comments