Skip to content

Commit 61e7164

Browse files
committed
made recommended changes
1 parent 3e3079e commit 61e7164

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎jackson/pom.xml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222
<artifactId>commons-io</artifactId>
2323
<version>2.4</version>
2424
</dependency>
25+
<!--jackson for xml-->
26+
<dependency>
27+
<groupId>com.fasterxml.jackson.dataformat</groupId>
28+
<artifactId>jackson-dataformat-xml</artifactId>
29+
<version>2.7.4</version>
30+
</dependency>
31+
2532

2633
<dependency>
2734
<groupId>org.apache.commons</groupId>

jackson/src/test/java/com/baeldung/xml/TestClass.java renamed to jackson/src/test/java/com/baeldung/jackson/xml/TestXMLSerializeDeserialize.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import com.fasterxml.jackson.core.JsonProcessingException;
1616
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
1717

18-
public class TestClass {
18+
public class TestXMLSerializeDeserialize {
1919

2020
@Test
2121
public void whenJavaSerializedToXmlStr_thenCorrect() throws JsonProcessingException{
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<SimpleBean>
2+
<x>1</x>
3+
<y>2</y>
4+
</SimpleBean>

0 commit comments

Comments
 (0)