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

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