Code example for SortedMap

Methods: entrySet, keySet, values

0
    } 
 
 
    /** 
     * @tests java.util.TreeMap#tailMap(java.lang.Object) 
     */ 
    public void test_tailMapLjava_lang_Object() { 
        // Test for method java.util.SortedMap 
        // java.util.TreeMap.tailMap(java.lang.Object) 
        Map tail = tm.tailMap(objArray[900].toString());
        assertTrue("Returned map of incorrect size : " + tail.size(), tail
                .size() == (objArray.length - 900) + 9);
        for (int i = 900; i < objArray.length; i++) {
            assertTrue("Map contains incorrect entries", tail
                    .containsValue(objArray[i]));
        } 
 
        // Regression for Harmony-1066 
        assertTrue(tail instanceof Serializable);
 
	SortedMap<Integer,Integer> intMap,sub;