Пример #1
0
 @org.junit.Test
 public void testDefaultValueEquality() throws IOException {
   final java.util.Set<java.awt.Point> defaultValue = null;
   final Bytes defaultValueJsonSerialized = jsonSerialization.serialize(defaultValue);
   final java.util.List<java.awt.Point> deserializedTmpList =
       jsonSerialization.deserializeList(
           java.awt.Point.class,
           defaultValueJsonSerialized.content,
           defaultValueJsonSerialized.length);
   final java.util.Set<java.awt.Point> defaultValueJsonDeserialized =
       deserializedTmpList == null
           ? null
           : new java.util.HashSet<java.awt.Point>(deserializedTmpList);
   com.dslplatform.ocd.javaasserts.PointAsserts.assertNullableSetOfOneEquals(
       defaultValue, defaultValueJsonDeserialized);
 }
Пример #2
0
 @org.junit.Test
 public void testBorderValue1Equality() throws IOException {
   final java.util.Set<java.awt.Point> borderValue1 =
       new java.util.HashSet<java.awt.Point>(java.util.Arrays.asList(new java.awt.Point()));
   final Bytes borderValue1JsonSerialized = jsonSerialization.serialize(borderValue1);
   final java.util.List<java.awt.Point> deserializedTmpList =
       jsonSerialization.deserializeList(
           java.awt.Point.class,
           borderValue1JsonSerialized.content,
           borderValue1JsonSerialized.length);
   final java.util.Set<java.awt.Point> borderValue1JsonDeserialized =
       deserializedTmpList == null
           ? null
           : new java.util.HashSet<java.awt.Point>(deserializedTmpList);
   com.dslplatform.ocd.javaasserts.PointAsserts.assertNullableSetOfOneEquals(
       borderValue1, borderValue1JsonDeserialized);
 }