Code example for Collection

Methods: iteratorsize

0
    @Test 
    public void getFunctions() throws Exception { 
        final Collection<ErlangFunction> functions = import1.getFunctions(); 
        final ErlangFunction function = functions.iterator().next(); 
        final Collection<ErlangFunction> functions2 = export.getFunctions(); 
        final ErlangFunction function2 = functions2.iterator().next(); 
        assertEquals(3, functions.size()); 
        assertEquals(new ErlangFunction("foldl", 3), function); 
        assertEquals(2, functions2.size()); 
        assertEquals(new ErlangFunction("f", 2), function2); 
    } 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java