Esempio n. 1
0
 @org.junit.Test
 public void testBorderValue3Equality() throws IOException {
   final Integer[] borderValue3 = new Integer[] {1000000000};
   final Bytes borderValue3JsonSerialized = jsonSerialization.serialize(borderValue3);
   final Integer[] borderValue3JsonDeserialized =
       jsonSerialization.deserialize(
           Integer[].class, borderValue3JsonSerialized.content, borderValue3JsonSerialized.length);
   com.dslplatform.ocd.javaasserts.IntegerAsserts.assertOneArrayOfNullableEquals(
       borderValue3, borderValue3JsonDeserialized);
 }
Esempio n. 2
0
 @org.junit.Test
 public void testDefaultValueEquality() throws IOException {
   final Integer[] defaultValue = new Integer[0];
   final Bytes defaultValueJsonSerialized = jsonSerialization.serialize(defaultValue);
   final Integer[] defaultValueJsonDeserialized =
       jsonSerialization.deserialize(
           Integer[].class, defaultValueJsonSerialized.content, defaultValueJsonSerialized.length);
   com.dslplatform.ocd.javaasserts.IntegerAsserts.assertOneArrayOfNullableEquals(
       defaultValue, defaultValueJsonDeserialized);
 }