File tree Expand file tree Collapse file tree 5 files changed +4
-175
lines changed
src/test/kotlin/com/fasterxml/jackson/module/kotlin Expand file tree Collapse file tree 5 files changed +4
-175
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class StrictNullChecksTest {
16
16
val mapper: ObjectMapper = ObjectMapper ()
17
17
.registerModule(
18
18
KotlinModule .Builder ()
19
- .enable(KotlinFeature .NewStrictNullChecks )
19
+ .enable(KotlinFeature .StrictNullChecks )
20
20
.build()
21
21
)
22
22
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package com.fasterxml.jackson.module.kotlin.test
2
2
3
3
import com.fasterxml.jackson.databind.ObjectMapper
4
4
import com.fasterxml.jackson.databind.exc.InvalidNullException
5
- import com.fasterxml.jackson.module.kotlin.KotlinFeature.NewStrictNullChecks
5
+ import com.fasterxml.jackson.module.kotlin.KotlinFeature
6
6
import com.fasterxml.jackson.module.kotlin.kotlinModule
7
7
import com.fasterxml.jackson.module.kotlin.readValue
8
8
import org.junit.jupiter.api.Assertions.assertArrayEquals
@@ -13,7 +13,7 @@ import org.junit.jupiter.api.assertThrows
13
13
import kotlin.test.assertNull
14
14
15
15
class StrictNullChecksTest {
16
- private val mapper = ObjectMapper ().registerModule(kotlinModule { enable(NewStrictNullChecks ) })
16
+ private val mapper = ObjectMapper ().registerModule(kotlinModule { enable(KotlinFeature . StrictNullChecks ) })
17
17
18
18
/* * collection tests */
19
19
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class GitHub757 {
11
11
@Test
12
12
fun test () {
13
13
val kotlinModule = KotlinModule .Builder ()
14
- .enable(KotlinFeature .NewStrictNullChecks )
14
+ .enable(KotlinFeature .StrictNullChecks )
15
15
.build()
16
16
val mapper = JsonMapper .builder()
17
17
.addModule(kotlinModule)
Original file line number Diff line number Diff line change @@ -18,14 +18,4 @@ class GitHub976 {
18
18
om.readValue(""" {"list": [""] }""" .toByteArray(), PrimitiveList ::class .java)
19
19
}
20
20
}
21
-
22
- @Test
23
- fun newStrictNullChecksRegression () {
24
- val om = jacksonObjectMapper {
25
- enable(KotlinFeature .NewStrictNullChecks )
26
- }
27
- assertThrows<InvalidNullException > {
28
- om.readValue(""" {"list": [""] }""" .toByteArray(), PrimitiveList ::class .java)
29
- }
30
- }
31
21
}
You can’t perform that action at this time.
0 commit comments