Code example for Attributes

Methods: putValue

0
public class OldAttributesTest extends TestCase {
    private Attributes a;
 
    @Override 
    protected void setUp() { 
        a = new Attributes();
        a.putValue("1", "one");
        a.putValue("2", "two");
        a.putValue("3", "three");
        a.putValue("4", "four");
    } 
 
    public void test_getLjava_lang_Object() { 
 
        try { 
            a.getValue("IllegalArgumentException expected");
        } catch (IllegalArgumentException ee) {
            // expected 
        } 
    }