Code example for Map

Methods: keySet

0
                "AndroidManifestApplication, " + 
                "AndroidManifestNewElement, " + 
                "AndroidManifestNewParent, " + 
                "AndroidManifestPermission" + 
                "]", 
                Arrays.toString(styleableList.keySet().toArray()));
    } 
 
    /** 
     * Tests that AndroidManifestNewParentNewElement got renamed to AndroidManifestNewElement 
     * and a parent named AndroidManifestNewParent was automatically created. 
     */ 
    public final void testNewParent() throws Exception { 
        Map<String, DeclareStyleableInfo> styleableList = preloadAndGetStyleables();
 
        DeclareStyleableInfo newElement = styleableList.get("AndroidManifestNewElement");
        assertNotNull(newElement);
        assertEquals("AndroidManifestNewElement", newElement.getStyleName());
        assertEquals("[AndroidManifestNewParent]",
                     Arrays.toString(newElement.getParents()));