File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
src/test/kotlin/io/github/projectmapk/jackson/module/kogera/zPorted/test/github Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ package io.github.projectmapk.jackson.module.kogera.zPorted.test.github
2+
3+ import com.fasterxml.jackson.databind.exc.InvalidNullException
4+ import io.github.projectmapk.jackson.module.kogera.KotlinFeature
5+ import io.github.projectmapk.jackson.module.kogera.jacksonObjectMapper
6+ import org.junit.jupiter.api.Test
7+ import org.junit.jupiter.api.assertThrows
8+
9+ class GitHub976 {
10+ data class PrimitiveList (val list : List <Int >)
11+
12+ @Test
13+ fun strictNullChecks () {
14+ val om = jacksonObjectMapper {
15+ enable(KotlinFeature .StrictNullChecks )
16+ }
17+ assertThrows<InvalidNullException > {
18+ om.readValue(""" {"list": [""] }""" , PrimitiveList ::class .java)
19+ }
20+ }
21+ }
You can’t perform that action at this time.
0 commit comments