Search in sources :

Example 11 with HashSlotCursor8byteKey

use of com.hazelcast.internal.util.hashslot.HashSlotCursor8byteKey in project hazelcast by hazelcast.

the class HashSlotArray8byteKeyImplTest method testCursor_valueAddress.

@Test
public void testCursor_valueAddress() {
    final long valueAddress = insert(random.nextLong());
    HashSlotCursor8byteKey cursor = hsa.cursor();
    cursor.advance();
    assertEquals(valueAddress, cursor.valueAddress());
}
Also used : HashSlotCursor8byteKey(com.hazelcast.internal.util.hashslot.HashSlotCursor8byteKey) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Aggregations

HashSlotCursor8byteKey (com.hazelcast.internal.util.hashslot.HashSlotCursor8byteKey)11 QuickTest (com.hazelcast.test.annotation.QuickTest)11 Test (org.junit.Test)11 RequireAssertEnabled (com.hazelcast.test.RequireAssertEnabled)6