urbanairship-core/src/test/java/com/urbanairship/analytics/CustomEventTest.java
@Test
    public void testCustomInteraction() throws JSONException {
        CustomEvent event = CustomEvent.newBuilder("event name")
                .setInteraction("interaction type", "interaction id")
                .build();

        EventTestUtils.validateEventValue(event, "interaction_id", "interaction id");
        EventTestUtils.validateEventValue(event, "interaction_type", "interaction type");
    }
/**
     * Test adding a custom event with a custom interaction.
     */
Test adding a custom event with a custom interaction.
Test adding a custom event with a custom interaction .
@Test
    public void testCustomInteraction() throws JSONException {
        CustomEvent event = CustomEvent.newBuilder("event name")
                .setInteraction("interaction type", "interaction id")
                .build();
        EventTestUtils.validateEventValue(event, "interaction_id", "interaction id");
        EventTestUtils.validateEventValue(event, "interaction_type", "interaction type");
    }
@ Test public void testCustomInteraction ( ) throws JSONException { CustomEvent event = CustomEvent . newBuilder ( "event name" ) . setInteraction ( "interaction type" , "interaction id" ) . build ( ) ; EventTestUtils . validateEventValue ( event , "interaction_id" , "interaction id" ) ; EventTestUtils . validateEventValue ( event , "interaction_type" , "interaction type" ) ; }
Test adding a custom event with a custom interaction.
Test adding a custom event with a custom interaction .