Code example for SortedMap

Methods: clear, size

0
 
    public void test_SubMap_Constructor() { 
    } 
 
    public void test_SubMap_clear() { 
        subMap_default.clear();
        assertEquals(0, subMap_default.size());
    } 
 
    public void test_SubMap_comparator() { 
        assertEquals(tm.comparator(), subMap_default.comparator());
    } 
 
    public void test_SubMap_containsKey() { 
        String key = null;
        for (int counter = 101; counter < 109; counter++) {
            key = objArray[counter].toString();
            assertTrue("SubMap contains incorrect elements", subMap_default
                    .containsKey(key));
            assertTrue("SubMap contains incorrect elements",
                    subMap_startExcluded_endExcluded.containsKey(key));