urbanairship-core/src/test/java/com/urbanairship/js/WhitelistTest.java
@Test
    public void testFilePathsWildCard() {
        assertTrue(whitelist.addEntry("file:///foo/*"));

        // Reject
        assertFalse(whitelist.isWhitelisted("file:///bar/index.html", Whitelist.SCOPE_ALL));
        assertFalse(whitelist.isWhitelisted("", Whitelist.SCOPE_ALL));

        // Accept
        assertTrue(whitelist.isWhitelisted("file:///foo/test.html", Whitelist.SCOPE_ALL));
        assertTrue(whitelist.isWhitelisted("file:///foo/html/index.html", Whitelist.SCOPE_ALL));
    }
/**
     * Test file paths with wild cards.
     */
Test file paths with wild cards.
Test file paths with wild cards .
@Test
    public void testFilePathsWildCard() {
        assertTrue(whitelist.addEntry("file:///foo/*"));
        assertFalse(whitelist.isWhitelisted("file:///bar/index.html", Whitelist.SCOPE_ALL));
        assertFalse(whitelist.isWhitelisted("", Whitelist.SCOPE_ALL));
        assertTrue(whitelist.isWhitelisted("file:///foo/test.html", Whitelist.SCOPE_ALL));
        assertTrue(whitelist.isWhitelisted("file:///foo/html/index.html", Whitelist.SCOPE_ALL));
    }
@ Test public void testFilePathsWildCard ( ) { assertTrue ( whitelist . addEntry ( "file:///foo/*" ) ) ; assertFalse ( whitelist . isWhitelisted ( "file:///bar/index.html" , Whitelist . SCOPE_ALL ) ) ; assertFalse ( whitelist . isWhitelisted ( "" , Whitelist . SCOPE_ALL ) ) ; assertTrue ( whitelist . isWhitelisted ( "file:///foo/test.html" , Whitelist . SCOPE_ALL ) ) ; assertTrue ( whitelist . isWhitelisted ( "file:///foo/html/index.html" , Whitelist . SCOPE_ALL ) ) ; }
Test file paths with wild cards.
Test file paths with wild cards .
// Reject // Accept