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

        assertTrue(whitelist.isWhitelisted("file:///what/oh/hi", Whitelist.SCOPE_ALL));
        assertTrue(whitelist.isWhitelisted("https://hi.urbanairship.com/path", Whitelist.SCOPE_ALL));
        assertTrue(whitelist.isWhitelisted("http://urbanairship.com", Whitelist.SCOPE_ALL));
        assertTrue(whitelist.isWhitelisted("cool.story://urbanairship.com", Whitelist.SCOPE_ALL));
    }
/**
     * Test wild card matcher matches any url.
     */
Test wild card matcher matches any url.
Test wild card matcher matches any url .
@Test
    public void testWildCardMatcher() {
        assertTrue(whitelist.addEntry("*"));
        assertTrue(whitelist.isWhitelisted("file:///what/oh/hi", Whitelist.SCOPE_ALL));
        assertTrue(whitelist.isWhitelisted("https://hi.urbanairship.com/path", Whitelist.SCOPE_ALL));
        assertTrue(whitelist.isWhitelisted("http://urbanairship.com", Whitelist.SCOPE_ALL));
        assertTrue(whitelist.isWhitelisted("cool.story://urbanairship.com", Whitelist.SCOPE_ALL));
    }
@ Test public void testWildCardMatcher ( ) { assertTrue ( whitelist . addEntry ( "*" ) ) ; assertTrue ( whitelist . isWhitelisted ( "file:///what/oh/hi" , Whitelist . SCOPE_ALL ) ) ; assertTrue ( whitelist . isWhitelisted ( "https://hi.urbanairship.com/path" , Whitelist . SCOPE_ALL ) ) ; assertTrue ( whitelist . isWhitelisted ( "http://urbanairship.com" , Whitelist . SCOPE_ALL ) ) ; assertTrue ( whitelist . isWhitelisted ( "cool.story://urbanairship.com" , Whitelist . SCOPE_ALL ) ) ; }
Test wild card matcher matches any url.
Test wild card matcher matches any url .