Changeset 20 for profile/src/test
- Timestamp:
- 08/05/20 09:42:15 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
profile/src/test/java/geniusweb/profile/utilityspace/LinearAdditiveSerializationTest.java
r7 r20 27 27 28 28 public class LinearAdditiveSerializationTest { 29 29 30 private static final BigDecimal VAL2 = new BigDecimal("0.2"); 30 31 private static final BigDecimal VAL3 = new BigDecimal("0.3"); … … 106 107 @Test 107 108 public void testSerialize() throws JsonProcessingException { 108 ObjectMapper jackson = new ObjectMapper();109 109 String string = jackson.writeValueAsString(space); 110 110 System.out.println(string); … … 114 114 @Test 115 115 public void testDeserialize() throws IOException { 116 ObjectMapper jackson = new ObjectMapper();117 116 assertEquals(space, jackson.readValue(serialized, Profile.class)); 118 117 } … … 120 119 @Test(expected = InvalidDefinitionException.class) 121 120 public void testDeserializeWrongIssues() throws IOException { 122 ObjectMapper jackson = new ObjectMapper();123 121 jackson.readValue(serializedWrongIssues, Profile.class); 124 122 }
Note:
See TracChangeset
for help on using the changeset viewer.