urbanairship-core/src/test/java/com/urbanairship/js/WhitelistTest.java
@Test
    public void testDisableUrlScopeWhitelisting() {
        assertFalse(whitelist.isWhitelisted("https://someurl.com", Whitelist.SCOPE_OPEN_URL));

        whitelist.setOpenUrlWhitelistingEnabled(false);
        assertTrue(whitelist.isWhitelisted("https://someurl.com", Whitelist.SCOPE_OPEN_URL));
        assertFalse(whitelist.isWhitelisted("https://someurl.com", Whitelist.SCOPE_JAVASCRIPT_INTERFACE));
        assertFalse(whitelist.isWhitelisted("https://someurl.com", Whitelist.SCOPE_ALL));
    }
/**
     * Test disabling url scope whitelisting.
     */
Test disabling url scope whitelisting.
Test disabling url scope whitelisting .
@Test
    public void testDisableUrlScopeWhitelisting() {
        assertFalse(whitelist.isWhitelisted("https://someurl.com", Whitelist.SCOPE_OPEN_URL));
        whitelist.setOpenUrlWhitelistingEnabled(false);
        assertTrue(whitelist.isWhitelisted("https://someurl.com", Whitelist.SCOPE_OPEN_URL));
        assertFalse(whitelist.isWhitelisted("https://someurl.com", Whitelist.SCOPE_JAVASCRIPT_INTERFACE));
        assertFalse(whitelist.isWhitelisted("https://someurl.com", Whitelist.SCOPE_ALL));
    }
@ Test public void testDisableUrlScopeWhitelisting ( ) { assertFalse ( whitelist . isWhitelisted ( "https://someurl.com" , Whitelist . SCOPE_OPEN_URL ) ) ; whitelist . setOpenUrlWhitelistingEnabled ( false ) ; assertTrue ( whitelist . isWhitelisted ( "https://someurl.com" , Whitelist . SCOPE_OPEN_URL ) ) ; assertFalse ( whitelist . isWhitelisted ( "https://someurl.com" , Whitelist . SCOPE_JAVASCRIPT_INTERFACE ) ) ; assertFalse ( whitelist . isWhitelisted ( "https://someurl.com" , Whitelist . SCOPE_ALL ) ) ; }
Test disabling url scope whitelisting.
Test disabling url scope whitelisting .