urbanairship-core/src/test/java/com/urbanairship/analytics/CustomEventTest.java
@Test
    public void testTransactionIDExceedsMaxLength() {
        CustomEvent event = CustomEvent.newBuilder("event name")
                .setTransactionId(createFixedSizeString('a', 256))
                .build();

        assertFalse(event.isValid());
    }
/**
     * Test setting a transaction ID that is longer than 255 characters makes it invalid.
     */
Test setting a transaction ID that is longer than 255 characters makes it invalid.
Test setting a transaction ID that is longer than 255 characters makes it invalid .
@Test
    public void testTransactionIDExceedsMaxLength() {
        CustomEvent event = CustomEvent.newBuilder("event name")
                .setTransactionId(createFixedSizeString('a', 256))
                .build();
        assertFalse(event.isValid());
    }
@ Test public void testTransactionIDExceedsMaxLength ( ) { CustomEvent event = CustomEvent . newBuilder ( "event name" ) . setTransactionId ( createFixedSizeString ( 'a' , 256 ) ) . build ( ) ; assertFalse ( event . isValid ( ) ) ; }
Test setting a transaction ID that is longer than 255 characters makes it invalid.
Test setting a transaction ID that is longer than 255 characters makes it invalid .