File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1
1
package com.fasterxml.jackson.module.kotlin.test.github
2
2
3
3
import com.fasterxml.jackson.databind.ObjectMapper
4
+ import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
4
5
import com.fasterxml.jackson.module.kotlin.kotlinModule
5
6
import com.fasterxml.jackson.module.kotlin.readValue
6
7
import org.junit.Test
@@ -29,4 +30,17 @@ class OwnerRequestTest {
29
30
val value: NoIsField = jackson.readValue(json)
30
31
assertEquals(" Got a foo" , value.foo)
31
32
}
33
+
34
+ // A test case for isSetter to work, added with the fix for this issue.
35
+ class IsSetter {
36
+ lateinit var isFoo: String
37
+ }
38
+
39
+ @Test
40
+ fun isSetterTest () {
41
+ val json = """ {"isFoo":"bar"}"""
42
+ val isSetter: IsSetter = jackson.readValue(json)
43
+
44
+ assertEquals(" bar" , isSetter.isFoo)
45
+ }
32
46
}
You can’t perform that action at this time.
0 commit comments