Example #1
0
 @org.junit.Test
 public void testBorderValue5Equality() throws IOException {
   final java.awt.geom.Rectangle2D[] borderValue5 =
       new java.awt.geom.Rectangle2D[] {
         null,
         new java.awt.geom.Rectangle2D.Float(),
         new java.awt.Rectangle(
             Integer.MIN_VALUE, Integer.MIN_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE),
         new java.awt.Rectangle(-1000000000, -1000000000, 1000000000, 1000000000),
         new java.awt.geom.Rectangle2D.Float(
             Float.MIN_VALUE, Float.MIN_VALUE, Float.MAX_VALUE, Float.MAX_VALUE),
         new java.awt.geom.Rectangle2D.Float(-1.0000001f, -1.0000001f, 1.0000001f, 1.0000001f),
         new java.awt.geom.Rectangle2D.Double(
             Double.MIN_VALUE, Double.MIN_VALUE, Double.MAX_VALUE, Double.MAX_VALUE),
         new java.awt.geom.Rectangle2D.Double(
             -1.000000000000001, -1.000000000000001, 1.000000000000001, 1.000000000000001)
       };
   final Bytes borderValue5JsonSerialized = jsonSerialization.serialize(borderValue5);
   final java.awt.geom.Rectangle2D[] borderValue5JsonDeserialized =
       jsonSerialization.deserialize(
           java.awt.geom.Rectangle2D[].class,
           borderValue5JsonSerialized.content,
           borderValue5JsonSerialized.length);
   com.dslplatform.ocd.javaasserts.RectangleAsserts.assertOneArrayOfNullableEquals(
       borderValue5, borderValue5JsonDeserialized);
 }
Example #2
0
 @org.junit.Test
 public void testBorderValue1Equality() throws IOException {
   final java.awt.geom.Rectangle2D[] borderValue1 = new java.awt.geom.Rectangle2D[] {null};
   final Bytes borderValue1JsonSerialized = jsonSerialization.serialize(borderValue1);
   final java.awt.geom.Rectangle2D[] borderValue1JsonDeserialized =
       jsonSerialization.deserialize(
           java.awt.geom.Rectangle2D[].class,
           borderValue1JsonSerialized.content,
           borderValue1JsonSerialized.length);
   com.dslplatform.ocd.javaasserts.RectangleAsserts.assertOneArrayOfNullableEquals(
       borderValue1, borderValue1JsonDeserialized);
 }
Example #3
0
 @org.junit.Test
 public void testDefaultValueEquality() throws IOException {
   final java.awt.geom.Rectangle2D[] defaultValue = new java.awt.geom.Rectangle2D[0];
   final Bytes defaultValueJsonSerialized = jsonSerialization.serialize(defaultValue);
   final java.awt.geom.Rectangle2D[] defaultValueJsonDeserialized =
       jsonSerialization.deserialize(
           java.awt.geom.Rectangle2D[].class,
           defaultValueJsonSerialized.content,
           defaultValueJsonSerialized.length);
   com.dslplatform.ocd.javaasserts.RectangleAsserts.assertOneArrayOfNullableEquals(
       defaultValue, defaultValueJsonDeserialized);
 }