Example #1
0
 @org.junit.Test
 public void testBorderValue5Equality() throws IOException {
   final java.math.BigDecimal borderValue5 = new java.math.BigDecimal("1E28");
   final Bytes borderValue5JsonSerialized = jsonSerialization.serialize(borderValue5);
   final java.math.BigDecimal borderValue5JsonDeserialized =
       jsonSerialization.deserialize(
           java.math.BigDecimal.class,
           borderValue5JsonSerialized.content,
           borderValue5JsonSerialized.length);
   com.dslplatform.ocd.javaasserts.DecimalAsserts.assertNullableEquals(
       borderValue5, borderValue5JsonDeserialized);
 }
Example #2
0
 @org.junit.Test
 public void testDefaultValueEquality() throws IOException {
   final java.math.BigDecimal defaultValue = null;
   final Bytes defaultValueJsonSerialized = jsonSerialization.serialize(defaultValue);
   final java.math.BigDecimal defaultValueJsonDeserialized =
       jsonSerialization.deserialize(
           java.math.BigDecimal.class,
           defaultValueJsonSerialized.content,
           defaultValueJsonSerialized.length);
   com.dslplatform.ocd.javaasserts.DecimalAsserts.assertNullableEquals(
       defaultValue, defaultValueJsonDeserialized);
 }
Example #3
0
 @org.junit.Test
 public void testBorderValue3Equality() throws IOException {
   final java.math.BigDecimal borderValue3 =
       new java.math.BigDecimal(
               "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679")
           .setScale(28, java.math.BigDecimal.ROUND_HALF_UP);
   final Bytes borderValue3JsonSerialized = jsonSerialization.serialize(borderValue3);
   final java.math.BigDecimal borderValue3JsonDeserialized =
       jsonSerialization.deserialize(
           java.math.BigDecimal.class,
           borderValue3JsonSerialized.content,
           borderValue3JsonSerialized.length);
   com.dslplatform.ocd.javaasserts.DecimalAsserts.assertNullableEquals(
       borderValue3, borderValue3JsonDeserialized);
 }