Search in sources :

Example 1 with LongLongProcedure

use of org.eclipse.collections.api.block.procedure.primitive.LongLongProcedure in project neo4j by neo4j.

the class LinearProbeLongLongHashMapTest method forEachKeyValue.

@Test
void forEachKeyValue() {
    final LongLongProcedure consumer = mock(LongLongProcedure.class);
    map.putAll(newWithKeysValues(0, 10, 1, 11, 2, 12));
    map.forEachKeyValue(consumer);
    verify(consumer).value(eq(0L), eq(10L));
    verify(consumer).value(eq(1L), eq(11L));
    verify(consumer).value(eq(2L), eq(12L));
    verifyNoMoreInteractions(consumer);
}
Also used : LongLongProcedure(org.eclipse.collections.api.block.procedure.primitive.LongLongProcedure) Test(org.junit.jupiter.api.Test)

Aggregations

LongLongProcedure (org.eclipse.collections.api.block.procedure.primitive.LongLongProcedure)1 Test (org.junit.jupiter.api.Test)1