Search in sources :

Example 1 with CyclicBuffer

use of com.hazelcast.map.impl.querycache.accumulator.CyclicBuffer in project hazelcast by hazelcast.

the class CyclicBufferTest method testBufferSize_whenEmpty.

@Test
public void testBufferSize_whenEmpty() {
    int maxCapacity = nextPowerOfTwo(10);
    CyclicBuffer buffer = new DefaultCyclicBuffer(maxCapacity);
    assertEquals("item count should be = " + 0, 0, buffer.size());
}
Also used : DefaultCyclicBuffer(com.hazelcast.map.impl.querycache.accumulator.DefaultCyclicBuffer) DefaultCyclicBuffer(com.hazelcast.map.impl.querycache.accumulator.DefaultCyclicBuffer) CyclicBuffer(com.hazelcast.map.impl.querycache.accumulator.CyclicBuffer) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test) ParallelTest(com.hazelcast.test.annotation.ParallelTest)

Aggregations

CyclicBuffer (com.hazelcast.map.impl.querycache.accumulator.CyclicBuffer)1 DefaultCyclicBuffer (com.hazelcast.map.impl.querycache.accumulator.DefaultCyclicBuffer)1 ParallelTest (com.hazelcast.test.annotation.ParallelTest)1 QuickTest (com.hazelcast.test.annotation.QuickTest)1 Test (org.junit.Test)1