urbanairship-core/src/test/java/com/urbanairship/actions/OverlayRichPushMessageActionTest.java
@Test
    public void testAcceptsArgumentsWithPlaceHolderPushMessageMetadata() {

        Bundle metadata = new Bundle();
        metadata.putParcelable(ActionArguments.PUSH_MESSAGE_METADATA, new PushMessage(new Bundle()));

        for (@Action.Situation int situation : acceptedSituations) {
            ActionArguments args = ActionTestUtils.createArgs(situation, "auto", metadata);
            assertTrue("Should accept arguments in situation " + situation,
                    action.acceptsArguments(args));
        }

        for (@Action.Situation int situation : rejectedSituations) {
            ActionArguments args = ActionTestUtils.createArgs(situation, "auto", metadata);
            assertFalse("Should reject arguments in situation " + situation,
                    action.acceptsArguments(args));
        }
    }
/**
     * Test accepts arguments with "auto" placeholder when the push message metadata is available.
     */
Test accepts arguments with "auto" placeholder when the push message metadata is available.
Test accepts arguments with " auto " placeholder when the push message metadata is available .
@Test
    public void testAcceptsArgumentsWithPlaceHolderPushMessageMetadata() {
        Bundle metadata = new Bundle();
        metadata.putParcelable(ActionArguments.PUSH_MESSAGE_METADATA, new PushMessage(new Bundle()));
        for (@Action.Situation int situation : acceptedSituations) {
            ActionArguments args = ActionTestUtils.createArgs(situation, "auto", metadata);
            assertTrue("Should accept arguments in situation " + situation,
                    action.acceptsArguments(args));
        }
        for (@Action.Situation int situation : rejectedSituations) {
            ActionArguments args = ActionTestUtils.createArgs(situation, "auto", metadata);
            assertFalse("Should reject arguments in situation " + situation,
                    action.acceptsArguments(args));
        }
    }
@ Test public void testAcceptsArgumentsWithPlaceHolderPushMessageMetadata ( ) { Bundle metadata = new Bundle ( ) ; metadata . putParcelable ( ActionArguments . PUSH_MESSAGE_METADATA , new PushMessage ( new Bundle ( ) ) ) ; for ( @ Action . Situation int situation : acceptedSituations ) { ActionArguments args = ActionTestUtils . createArgs ( situation , "auto" , metadata ) ; assertTrue ( "Should accept arguments in situation " + situation , action . acceptsArguments ( args ) ) ; } for ( @ Action . Situation int situation : rejectedSituations ) { ActionArguments args = ActionTestUtils . createArgs ( situation , "auto" , metadata ) ; assertFalse ( "Should reject arguments in situation " + situation , action . acceptsArguments ( args ) ) ; } }
Test accepts arguments with "auto" placeholder when the push message metadata is available.
Test accepts arguments with " auto " placeholder when the push message metadata is available .