@org.junit.Test public void testDefaultValueEquality() throws IOException { final java.util.Set<java.awt.Point> defaultValue = null; final StaticJson.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); PointAsserts.assertNullableSetOfNullableEquals(defaultValue, defaultValueJsonDeserialized); }
@org.junit.Test public void testBorderValue2Equality() throws IOException { final java.util.Set<java.awt.Point> borderValue2 = new java.util.HashSet<java.awt.Point>(java.util.Arrays.asList(new java.awt.Point())); final StaticJson.Bytes borderValue2JsonSerialized = jsonSerialization.serialize(borderValue2); final java.util.List<java.awt.Point> deserializedTmpList = jsonSerialization.deserializeList( java.awt.Point.class, borderValue2JsonSerialized.content, borderValue2JsonSerialized.length); final java.util.Set<java.awt.Point> borderValue2JsonDeserialized = deserializedTmpList == null ? null : new java.util.HashSet<java.awt.Point>(deserializedTmpList); PointAsserts.assertNullableSetOfNullableEquals(borderValue2, borderValue2JsonDeserialized); }
@org.junit.Test public void testBorderValue5Equality() throws IOException { final java.util.Set<java.awt.Point> borderValue5 = new java.util.HashSet<java.awt.Point>( java.util.Arrays.asList( (java.awt.Point) null, new java.awt.Point(), new java.awt.Point(Integer.MIN_VALUE, Integer.MIN_VALUE), new java.awt.Point(Integer.MAX_VALUE, Integer.MAX_VALUE), new java.awt.Point(0, -1000000000), new java.awt.Point(0, 1000000000))); final StaticJson.Bytes borderValue5JsonSerialized = jsonSerialization.serialize(borderValue5); final java.util.List<java.awt.Point> deserializedTmpList = jsonSerialization.deserializeList( java.awt.Point.class, borderValue5JsonSerialized.content, borderValue5JsonSerialized.length); final java.util.Set<java.awt.Point> borderValue5JsonDeserialized = deserializedTmpList == null ? null : new java.util.HashSet<java.awt.Point>(deserializedTmpList); PointAsserts.assertNullableSetOfNullableEquals(borderValue5, borderValue5JsonDeserialized); }