Branch to test the original jackson
This commit is contained in:
parent
9a3932610b
commit
d986457fbe
4
pom.xml
4
pom.xml
|
@ -17,6 +17,7 @@
|
|||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<jackson.version>2.8.11</jackson.version>
|
||||
<serviceClass>InformationSystem</serviceClass>
|
||||
</properties>
|
||||
|
||||
|
@ -49,14 +50,17 @@
|
|||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-databind</artifactId>
|
||||
<version>${jackson.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-annotations</artifactId>
|
||||
<version>${jackson.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-core</artifactId>
|
||||
<version>${jackson.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.gcube.core</groupId>
|
||||
|
|
|
@ -162,10 +162,9 @@ public class SerializationTest {
|
|||
propagationConstraint.setAddConstraint(AddConstraint.propagate);
|
||||
propagationConstraint.setRemoveConstraint(RemoveConstraint.cascadeWhenOrphan);
|
||||
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
String pg = mapper.writeValueAsString(propagationConstraint);
|
||||
String pg = ElementMapper.marshal(propagationConstraint);
|
||||
|
||||
PropagationConstraint pgUnm = mapper.readValue(pg, PropagationConstraint.class);
|
||||
PropagationConstraint pgUnm = ElementMapper.unmarshal(PropagationConstraint.class, pg);
|
||||
|
||||
logger.debug("{}", pgUnm);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue