Skip to content

Commit 803c28c

Browse files
authored
Merge pull request #945 from k163377/JsonRootName
Replace JacksonXmlRootElement used in the test with JsonRootName
2 parents 0487505 + 5a53c1b commit 803c28c

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

release-notes/CREDITS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ Authors:
1717

1818
Contributors:
1919

20+
# 3.0.0-rc3 (not yet released)
21+
WrongWrong (@k163377)
22+
* #945: Replace JacksonXmlRootElement used in the test with JsonRootName
23+
2024
# 3.0.0-rc2 (not yet released)
2125

2226
WrongWrong (@k163377)

src/test/kotlin/tools/jackson/module/kotlin/test/github/Github153.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
package tools.jackson.module.kotlin.test.github
22

3+
import com.fasterxml.jackson.annotation.JsonRootName
34
import tools.jackson.databind.exc.InvalidDefinitionException
45
import tools.jackson.dataformat.xml.XmlMapper
56
import tools.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper
67
import tools.jackson.dataformat.xml.annotation.JacksonXmlProperty
7-
import tools.jackson.dataformat.xml.annotation.JacksonXmlRootElement
88
import tools.jackson.module.kotlin.kotlinModule
99
import tools.jackson.module.kotlin.test.expectFailure
1010
import org.junit.jupiter.api.Test
1111
import kotlin.test.assertEquals
1212

1313
class TestGithub153 {
14-
@JacksonXmlRootElement(localName = "MyPojo")
14+
@JsonRootName("MyPojo")
1515
class MyPojo {
1616
@JacksonXmlElementWrapper(localName = "elements")
1717
@JacksonXmlProperty(localName = "element")
@@ -23,7 +23,7 @@ class TestGithub153 {
2323
var value: String? = null
2424
}
2525

26-
@JacksonXmlRootElement(localName = "MyPojo")
26+
@JsonRootName("MyPojo")
2727
data class MyDataPojo (
2828
@JacksonXmlElementWrapper(localName = "elements")
2929
@JacksonXmlProperty(localName = "element")

src/test/kotlin/tools/jackson/module/kotlin/test/github/failing/Github138.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
package tools.jackson.module.kotlin.test.github.failing
22

33
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
4+
import com.fasterxml.jackson.annotation.JsonRootName
45
import tools.jackson.databind.exc.InvalidDefinitionException
56
import tools.jackson.dataformat.xml.XmlMapper
67
import tools.jackson.dataformat.xml.annotation.JacksonXmlProperty
7-
import tools.jackson.dataformat.xml.annotation.JacksonXmlRootElement
88
import tools.jackson.dataformat.xml.annotation.JacksonXmlText
99
import tools.jackson.module.kotlin.readValue
1010
import tools.jackson.module.kotlin.test.expectFailure
1111
import tools.jackson.module.kotlin.kotlinModule
1212
import org.junit.jupiter.api.Test
1313

1414
class TestGithub138 {
15-
@JacksonXmlRootElement(localName = "sms")
15+
@JsonRootName("sms")
1616
@JsonIgnoreProperties(ignoreUnknown = true)
1717
data class Sms(
1818
@JacksonXmlProperty(localName = "Phone", isAttribute = true)

0 commit comments

Comments
 (0)