Code example for CookieManager

Methods: getCookieStore

0
            public boolean removeAll() { 
                return false; 
            } 
        } 
        CookieStore store = new DummyStore();
        CookieManager cookieManager = new CookieManager(store,
                CookiePolicy.ACCEPT_ALL);
        assertEquals("A dummy store", ((DummyStore) cookieManager
                .getCookieStore()).getName());
        assertSame(store, cookieManager.getCookieStore());
    } 
 
    /** 
     * @tests {@link java.net.CookieManager#setCookiePolicy(java.net.CookiePolicy)} 
     *  
     * @since 1.6 
     */ 
    public void test_SetCookiePolicy_LCookiePolicy() throws URISyntaxException, 
            IOException { 
 
        // Policy = ACCEPT_NONE