예제 #1
0
 @org.junit.Test
 public void testDefaultValueEquality() throws IOException {
   final java.util.List<Long> defaultValue = null;
   final Bytes defaultValueJsonSerialized = jsonSerialization.serialize(defaultValue);
   final java.util.List<Long> defaultValueJsonDeserialized =
       jsonSerialization.deserializeList(
           Long.class, defaultValueJsonSerialized.content, defaultValueJsonSerialized.length);
   com.dslplatform.ocd.javaasserts.LongAsserts.assertNullableListOfNullableEquals(
       defaultValue, defaultValueJsonDeserialized);
 }
예제 #2
0
 @org.junit.Test
 public void testBorderValue3Equality() throws IOException {
   final java.util.List<Long> borderValue3 =
       new java.util.ArrayList<Long>(java.util.Arrays.asList(Long.MAX_VALUE));
   final Bytes borderValue3JsonSerialized = jsonSerialization.serialize(borderValue3);
   final java.util.List<Long> borderValue3JsonDeserialized =
       jsonSerialization.deserializeList(
           Long.class, borderValue3JsonSerialized.content, borderValue3JsonSerialized.length);
   com.dslplatform.ocd.javaasserts.LongAsserts.assertNullableListOfNullableEquals(
       borderValue3, borderValue3JsonDeserialized);
 }