Code example for WeakHashMap

Methods: size

0
 
    /** 
     * @tests java.util.WeakHashMap#WeakHashMap(int, float) 
     */ 
    @TestTargets({ 
        @TestTargetNew( 
            level = TestLevel.COMPLETE, 
            notes = "", 
            method = "WeakHashMap", 
            args = {int.class, float.class} 
        ), 
        @TestTargetNew( 
            level = TestLevel.COMPLETE, 
            notes = "", 
            method = "get", 
            args = {java.lang.Object.class}
        ) 
    }) 
    public void test_ConstructorIF() { 
        // Test for method java.util.WeakHashMap(int, float) 
        whm = new WeakHashMap(50, 0.5f);