urbanairship-core/src/test/java/com/urbanairship/actions/OverlayRichPushMessageActionTest.java
@Test
    public void testPerformMessageId() {
        RichPushMessage message = mock(RichPushMessage.class);
        when(message.getMessageId()).thenReturn("the_message_id");

        when(mockInbox.getMessage("the_message_id")).thenReturn(message);

        action.perform(ActionTestUtils.createArgs(Action.SITUATION_MANUAL_INVOCATION, "the_message_id"));

        Intent startedIntent = ShadowApplication.getInstance().getNextStartedActivity();
        assertEquals("com.urbanairship.actions.SHOW_LANDING_PAGE_INTENT_ACTION", startedIntent.getAction());
        assertEquals("message:the_message_id", startedIntent.getDataString());
    }
/**
     * Test perform with a message ID start a landing page with the message's ID.
     */
Test perform with a message ID start a landing page with the message's ID.
Test perform with a message ID start a landing page with the message ' s ID .
@Test
    public void testPerformMessageId() {
        RichPushMessage message = mock(RichPushMessage.class);
        when(message.getMessageId()).thenReturn("the_message_id");
        when(mockInbox.getMessage("the_message_id")).thenReturn(message);
        action.perform(ActionTestUtils.createArgs(Action.SITUATION_MANUAL_INVOCATION, "the_message_id"));
        Intent startedIntent = ShadowApplication.getInstance().getNextStartedActivity();
        assertEquals("com.urbanairship.actions.SHOW_LANDING_PAGE_INTENT_ACTION", startedIntent.getAction());
        assertEquals("message:the_message_id", startedIntent.getDataString());
    }
@ Test public void testPerformMessageId ( ) { RichPushMessage message = mock ( RichPushMessage . class ) ; when ( message . getMessageId ( ) ) . thenReturn ( "the_message_id" ) ; when ( mockInbox . getMessage ( "the_message_id" ) ) . thenReturn ( message ) ; action . perform ( ActionTestUtils . createArgs ( Action . SITUATION_MANUAL_INVOCATION , "the_message_id" ) ) ; Intent startedIntent = ShadowApplication . getInstance ( ) . getNextStartedActivity ( ) ; assertEquals ( "com.urbanairship.actions.SHOW_LANDING_PAGE_INTENT_ACTION" , startedIntent . getAction ( ) ) ; assertEquals ( "message:the_message_id" , startedIntent . getDataString ( ) ) ; }
Test perform with a message ID start a landing page with the message's ID.
Test perform with a message ID start a landing page with the message ' s ID .