Code example for SortedMap

Methods: size

0
            assertEquals(ref.remove(key), map.remove(key));
        }        
    } 
     
    public final void testSize() { 
        assertEquals(ref.size(), map.size());
    } 
 
     
    public final void testValues() { 
        assertEquals(ref.values().size(), map.values().size());
        assertTrue(ref.values().containsAll(map.values()));
        assertTrue(map.values().containsAll(ref.values()));
         
        Iterator<Integer> i = ref.values().iterator();
        Iterator<Integer> j = map.values().iterator();
        while (i.hasNext()) {
            assertEquals(i.next(), j.next());
            if (rnd.nextBoolean()) {
                j.remove();
Stop searching for code, let great code find you!  Add Codota to your java IDE