Code example for Attributes

Methods: putValue

0
                "Name"); 
        assertEquals(n1, n2);
        Attributes a1 = new Attributes();
        a1.putValue("one", "1");
        a1.putValue("two", "2");
        Attributes a2 = new Attributes();
        a2.putValue("One", "1");
        a2.putValue("TWO", "2");
        assertEquals(a1, a2);
    } 
 
    /** 
     * @tests java.util.jar.Attributes.put(java.lang.Object, java.lang.Object) 
     */ 
    public void test_putLjava_lang_ObjectLjava_lang_Object() { 
        Attributes atts = new Attributes();
        assertNull("Assert 0: ", atts.put(Attributes.Name.CLASS_PATH,
                "tools.jar")); 
        assertEquals("Assert 1: ", "tools.jar", atts
                .getValue(Attributes.Name.CLASS_PATH));
        // Regression for HARMONY-79