Branch to test the original jackson

This commit is contained in:
Luca Frosini 2020-04-29 19:46:48 +02:00
parent 9a3932610b
commit d986457fbe
2 changed files with 6 additions and 3 deletions

View File

@ -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>

View File

@ -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);
}