File tree 8 files changed +18
-18
lines changed
src/test/kotlin/com/fasterxml/jackson/module/kotlin/test
8 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 52
52
<javac .src.version>1.8</javac .src.version>
53
53
<javac .target.version>1.8</javac .target.version>
54
54
55
- <version .kotlin>1.4.10 </version .kotlin>
55
+ <version .kotlin>1.4.21 </version .kotlin>
56
56
57
57
<!-- Generate PackageVersion.java into this directory. -->
58
58
<packageVersion .dir>com/fasterxml/jackson/module/kotlin</packageVersion .dir>
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ Co-maintainers:
25
25
#385 : Add Moditect, source module info, to allow Kotlin module usage with Java Module system
26
26
- Add Gradle Module Metadata (https ://blog.gradle.org/alignment-with-gradle-module-metadata)
27
27
28
+ 2.11 .4 (12 - Dec - 2020 )
28
29
2.11 .3 (02 - Oct - 2020 )
29
30
2.11 .2 (02 - Aug - 2020 )
30
31
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ package com.fasterxml.jackson.module.kotlin.test.failing
3
3
import com.fasterxml.jackson.annotation.JsonSubTypes
4
4
import com.fasterxml.jackson.annotation.JsonTypeInfo
5
5
import com.fasterxml.jackson.annotation.JsonTypeName
6
- import com.fasterxml.jackson.module.kotlin.*
7
- import org.junit.Ignore
6
+ import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
7
+ import com.fasterxml.jackson.module.kotlin.readValue
8
8
import org.junit.Test
9
9
import kotlin.test.assertEquals
10
10
import kotlin.test.assertNull
@@ -60,4 +60,4 @@ class GithubDatabind1329 {
60
60
CONTACT ,
61
61
USER
62
62
}
63
- }
63
+ }
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ class TestGithub145 {
125
125
}
126
126
}
127
127
@Test
128
- @Ignore(" Broke at some point on 2.12 branch (before automated tests were working); fixe for 2.12 release " )
128
+ @Ignore(" Broke at some point on 2.12 branch (before automated tests were working)" )
129
129
fun testPersonGood7 () {
130
130
val personGood7String = objectMapper.readValue<PersonGood7 >(""" "TestPreName,TestLastname"""" )
131
131
val personGood7Json =
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ import com.fasterxml.jackson.annotation.JsonProperty
5
5
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
6
6
import com.fasterxml.jackson.module.kotlin.readValue
7
7
import org.junit.Test
8
+ import kotlin.test.assertNull
8
9
9
- class Github180_JsonCreatorTest {
10
+ class TestGithub180 {
10
11
class TestClass (val instantName : String? = null , val someInt : Int? = null ) {
11
-
12
12
companion object {
13
13
@JvmStatic
14
14
@JsonCreator
@@ -25,5 +25,7 @@ class Github180_JsonCreatorTest {
25
25
@Test
26
26
fun testMissingProperty () {
27
27
val obj = jacksonObjectMapper().readValue<TestClass >(""" {}""" )
28
+ assertNull(obj.instantName)
29
+ assertNull(obj.someInt)
28
30
}
29
- }
31
+ }
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ import kotlin.test.assertEquals
10
10
import kotlin.test.assertNotNull
11
11
import kotlin.test.assertNull
12
12
13
- class Github308 {
14
-
13
+ class TestGithub308 {
15
14
@JsonIgnoreProperties(ignoreUnknown = true )
16
15
data class TestDto (
17
16
@JsonIgnore
@@ -32,4 +31,4 @@ class Github308 {
32
31
assertNull(dto.id)
33
32
assertEquals(dto.cityId, 12345 )
34
33
}
35
- }
34
+ }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
4
4
import org.junit.Test
5
5
import kotlin.test.assertEquals
6
6
7
- class Github88 {
7
+ class TestGithub88 {
8
8
class CloneableKotlinObj (val id : String ) : Cloneable
9
9
10
10
@Test
@@ -20,5 +20,4 @@ class Github88 {
20
20
21
21
assertEquals(" {\" id\" :\" 123\" }" , result)
22
22
}
23
-
24
- }
23
+ }
Original file line number Diff line number Diff line change @@ -7,11 +7,10 @@ import com.fasterxml.jackson.module.kotlin.readValue
7
7
import org.junit.Assert.assertEquals
8
8
import org.junit.Test
9
9
10
- class Github91Test {
11
-
10
+ class TestGithub91 {
12
11
data class DataClass1 (val name : String , val content : DataClass2 )
13
12
14
- data class DataClass2 @JsonCreator(mode = JsonCreator .Mode .DELEGATING ) constructor (@JsonValue val content : String )
13
+ data class DataClass2 @JsonCreator(mode = JsonCreator .Mode .DELEGATING ) constructor(@JsonValue val content : String )
15
14
16
15
private val jsonData = """
17
16
{
@@ -27,4 +26,4 @@ class Github91Test {
27
26
assertEquals(DataClass1 (" my name" , DataClass2 (" some value" )), dataClass1)
28
27
assertEquals(" {\" name\" :\" my name\" ,\" content\" :\" some value\" }" , mapper.writeValueAsString(dataClass1))
29
28
}
30
- }
29
+ }
You can’t perform that action at this time.
0 commit comments