urbanairship-core/src/test/java/com/urbanairship/push/PushManagerTest.java
@Test
    public void testDefaultNotificationFactory() {
        DefaultNotificationFactory factory = (DefaultNotificationFactory) pushManager.getNotificationFactory();
        assertEquals(0, factory.getSmallIconId());
        assertEquals(0, factory.getColor());

        AirshipConfigOptions options = new AirshipConfigOptions.Builder()
                .setDevelopmentAppKey("appKey")
                .setDevelopmentAppSecret("appSecret")
                .setNotificationAccentColor(Color.parseColor("#ff0000"))
                .setNotificationIcon(R.drawable.ua_ic_urbanairship_notification)
                .build();

        pushManager = new PushManager(TestApplication.getApplication(), preferenceDataStore, options, null, mockTagGroupRegistrar);
        factory = (DefaultNotificationFactory) pushManager.getNotificationFactory();

        assertEquals(R.drawable.ua_ic_urbanairship_notification, factory.getSmallIconId());
        assertEquals(Color.parseColor("#ff0000"), factory.getColor());
    }
/**
     * Test default notification icon and accent color.
     */
Test default notification icon and accent color.
Test default notification icon and accent color .
@Test
    public void testDefaultNotificationFactory() {
        DefaultNotificationFactory factory = (DefaultNotificationFactory) pushManager.getNotificationFactory();
        assertEquals(0, factory.getSmallIconId());
        assertEquals(0, factory.getColor());
        AirshipConfigOptions options = new AirshipConfigOptions.Builder()
                .setDevelopmentAppKey("appKey")
                .setDevelopmentAppSecret("appSecret")
                .setNotificationAccentColor(Color.parseColor("#ff0000"))
                .setNotificationIcon(R.drawable.ua_ic_urbanairship_notification)
                .build();
        pushManager = new PushManager(TestApplication.getApplication(), preferenceDataStore, options, null, mockTagGroupRegistrar);
        factory = (DefaultNotificationFactory) pushManager.getNotificationFactory();
        assertEquals(R.drawable.ua_ic_urbanairship_notification, factory.getSmallIconId());
        assertEquals(Color.parseColor("#ff0000"), factory.getColor());
    }
@ Test public void testDefaultNotificationFactory ( ) { DefaultNotificationFactory factory = ( DefaultNotificationFactory ) pushManager . getNotificationFactory ( ) ; assertEquals ( 0 , factory . getSmallIconId ( ) ) ; assertEquals ( 0 , factory . getColor ( ) ) ; AirshipConfigOptions options = new AirshipConfigOptions . Builder ( ) . setDevelopmentAppKey ( "appKey" ) . setDevelopmentAppSecret ( "appSecret" ) . setNotificationAccentColor ( Color . parseColor ( "#ff0000" ) ) . setNotificationIcon ( R . drawable . ua_ic_urbanairship_notification ) . build ( ) ; pushManager = new PushManager ( TestApplication . getApplication ( ) , preferenceDataStore , options , null , mockTagGroupRegistrar ) ; factory = ( DefaultNotificationFactory ) pushManager . getNotificationFactory ( ) ; assertEquals ( R . drawable . ua_ic_urbanairship_notification , factory . getSmallIconId ( ) ) ; assertEquals ( Color . parseColor ( "#ff0000" ) , factory . getColor ( ) ) ; }
Test default notification icon and accent color.
Test default notification icon and accent color .