urbanairship-core/src/test/java/com/urbanairship/analytics/CustomEventTest.java
@Test
    public void testEventValueBigDecimalBelowMin() {
        CustomEvent event = CustomEvent.newBuilder("event name")
                .setEventValue(new BigDecimal(Integer.MIN_VALUE).subtract(BigDecimal.valueOf(0.000001)))
                .build();

        assertFalse(event.isValid());

    }
/**
     * Test setting event value below the min allowed makes the event invalid.
     */
Test setting event value below the min allowed makes the event invalid.
Test setting event value below the min allowed makes the event invalid .
@Test
    public void testEventValueBigDecimalBelowMin() {
        CustomEvent event = CustomEvent.newBuilder("event name")
                .setEventValue(new BigDecimal(Integer.MIN_VALUE).subtract(BigDecimal.valueOf(0.000001)))
                .build();
        assertFalse(event.isValid());
    }
@ Test public void testEventValueBigDecimalBelowMin ( ) { CustomEvent event = CustomEvent . newBuilder ( "event name" ) . setEventValue ( new BigDecimal ( Integer . MIN_VALUE ) . subtract ( BigDecimal . valueOf ( 0.000001 ) ) ) . build ( ) ; assertFalse ( event . isValid ( ) ) ; }
Test setting event value below the min allowed makes the event invalid.
Test setting event value below the min allowed makes the event invalid .