File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
mockito-kotlin/src/test/kotlin/test/inline Expand file tree Collapse file tree 1 file changed +5
-7
lines changed 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