made recommended changes
This commit is contained in:
parent
3e3079e4c9
commit
61e7164703
|
@ -22,6 +22,13 @@
|
||||||
<artifactId>commons-io</artifactId>
|
<artifactId>commons-io</artifactId>
|
||||||
<version>2.4</version>
|
<version>2.4</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!--jackson for xml-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
||||||
|
<artifactId>jackson-dataformat-xml</artifactId>
|
||||||
|
<version>2.7.4</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.commons</groupId>
|
<groupId>org.apache.commons</groupId>
|
||||||
|
|
|
@ -15,7 +15,7 @@ import org.junit.Test;
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
|
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
|
||||||
|
|
||||||
public class TestClass {
|
public class TestXMLSerializeDeserialize {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenJavaSerializedToXmlStr_thenCorrect() throws JsonProcessingException{
|
public void whenJavaSerializedToXmlStr_thenCorrect() throws JsonProcessingException{
|
|
@ -0,0 +1,4 @@
|
||||||
|
<SimpleBean>
|
||||||
|
<x>1</x>
|
||||||
|
<y>2</y>
|
||||||
|
</SimpleBean>
|
Loading…
Reference in New Issue