urbanairship-core/src/test/java/com/urbanairship/AirshipConfigOptionsTest.java
@Test
    public void testInvalidOptions() throws IOException {
        AirshipConfigOptions aco = new AirshipConfigOptions.Builder()
                .applyProperties(uaContext, getProperties(INVALID_PROPERTIES_FILE))
                .setDevelopmentAppKey("appKey")
                .setDevelopmentAppSecret("appSecret")
                .setProductionAppSecret("appSecret")
                .setProductionAppKey("appKey")
                .build();

        assertEquals(Log.DEBUG, aco.developmentLogLevel);
        assertEquals(Log.ERROR, aco.productionLogLevel);

        assertEquals(0, aco.notificationAccentColor);
        assertEquals(0, aco.notificationIcon);
    }
/**
     * This test loads invalid values and verify the property value is set to default
     */
This test loads invalid values and verify the property value is set to default
This test loads invalid values and verify the property value is set to default
@Test
    public void testInvalidOptions() throws IOException {
        AirshipConfigOptions aco = new AirshipConfigOptions.Builder()
                .applyProperties(uaContext, getProperties(INVALID_PROPERTIES_FILE))
                .setDevelopmentAppKey("appKey")
                .setDevelopmentAppSecret("appSecret")
                .setProductionAppSecret("appSecret")
                .setProductionAppKey("appKey")
                .build();
        assertEquals(Log.DEBUG, aco.developmentLogLevel);
        assertEquals(Log.ERROR, aco.productionLogLevel);
        assertEquals(0, aco.notificationAccentColor);
        assertEquals(0, aco.notificationIcon);
    }
@ Test public void testInvalidOptions ( ) throws IOException { AirshipConfigOptions aco = new AirshipConfigOptions . Builder ( ) . applyProperties ( uaContext , getProperties ( INVALID_PROPERTIES_FILE ) ) . setDevelopmentAppKey ( "appKey" ) . setDevelopmentAppSecret ( "appSecret" ) . setProductionAppSecret ( "appSecret" ) . setProductionAppKey ( "appKey" ) . build ( ) ; assertEquals ( Log . DEBUG , aco . developmentLogLevel ) ; assertEquals ( Log . ERROR , aco . productionLogLevel ) ; assertEquals ( 0 , aco . notificationAccentColor ) ; assertEquals ( 0 , aco . notificationIcon ) ; }
This test loads invalid values and verify the property value is set to default
This test loads invalid values and verify the property value is set to default