Search in sources :

Example 16 with RequireAssertEnabled

use of com.hazelcast.test.RequireAssertEnabled in project hazelcast by hazelcast.

the class HashSlotArray16byteKeyImplTest method testCursor_valueAddress_withoutAdvance.

@Test(expected = AssertionError.class)
@RequireAssertEnabled
public void testCursor_valueAddress_withoutAdvance() {
    HashSlotCursor16byteKey cursor = hsa.cursor();
    cursor.valueAddress();
}
Also used : HashSlotCursor16byteKey(com.hazelcast.internal.util.hashslot.HashSlotCursor16byteKey) RequireAssertEnabled(com.hazelcast.test.RequireAssertEnabled) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Example 17 with RequireAssertEnabled

use of com.hazelcast.test.RequireAssertEnabled in project hazelcast by hazelcast.

the class HashSlotArray16byteKeyNoValueTest method testCursor_valueAddress_whenDisposed.

@Test(expected = AssertionError.class)
@RequireAssertEnabled
public void testCursor_valueAddress_whenDisposed() {
    HashSlotCursor16byteKey cursor = hsa.cursor();
    hsa.dispose();
    cursor.valueAddress();
}
Also used : HashSlotCursor16byteKey(com.hazelcast.internal.util.hashslot.HashSlotCursor16byteKey) RequireAssertEnabled(com.hazelcast.test.RequireAssertEnabled) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Example 18 with RequireAssertEnabled

use of com.hazelcast.test.RequireAssertEnabled in project hazelcast by hazelcast.

the class HashSlotArray16byteKeyNoValueTest method testCursor_key2_withoutAdvance.

@Test(expected = AssertionError.class)
@RequireAssertEnabled
public void testCursor_key2_withoutAdvance() {
    HashSlotCursor16byteKey cursor = hsa.cursor();
    cursor.key2();
}
Also used : HashSlotCursor16byteKey(com.hazelcast.internal.util.hashslot.HashSlotCursor16byteKey) RequireAssertEnabled(com.hazelcast.test.RequireAssertEnabled) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Example 19 with RequireAssertEnabled

use of com.hazelcast.test.RequireAssertEnabled in project hazelcast by hazelcast.

the class HashSlotArray16byteKeyNoValueTest method testCursor_valueAddress_withoutAdvance.

@Test(expected = AssertionError.class)
@RequireAssertEnabled
public void testCursor_valueAddress_withoutAdvance() {
    HashSlotCursor16byteKey cursor = hsa.cursor();
    cursor.valueAddress();
}
Also used : HashSlotCursor16byteKey(com.hazelcast.internal.util.hashslot.HashSlotCursor16byteKey) RequireAssertEnabled(com.hazelcast.test.RequireAssertEnabled) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Example 20 with RequireAssertEnabled

use of com.hazelcast.test.RequireAssertEnabled in project hazelcast by hazelcast.

the class HashSlotArray16byteKeyNoValueTest method testCursor_key1_whenDisposed.

@Test(expected = AssertionError.class)
@RequireAssertEnabled
public void testCursor_key1_whenDisposed() {
    HashSlotCursor16byteKey cursor = hsa.cursor();
    hsa.dispose();
    cursor.key1();
}
Also used : HashSlotCursor16byteKey(com.hazelcast.internal.util.hashslot.HashSlotCursor16byteKey) RequireAssertEnabled(com.hazelcast.test.RequireAssertEnabled) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Aggregations

RequireAssertEnabled (com.hazelcast.test.RequireAssertEnabled)24 QuickTest (com.hazelcast.test.annotation.QuickTest)24 Test (org.junit.Test)24 HashSlotCursor16byteKey (com.hazelcast.internal.util.hashslot.HashSlotCursor16byteKey)11 HashSlotCursor8byteKey (com.hazelcast.internal.util.hashslot.HashSlotCursor8byteKey)6 HashSlotCursor12byteKey (com.hazelcast.internal.util.hashslot.HashSlotCursor12byteKey)4 ParallelTest (com.hazelcast.test.annotation.ParallelTest)3 DefaultOperationQueue (com.hazelcast.spi.impl.operationexecutor.impl.DefaultOperationQueue)2 OperationQueue (com.hazelcast.spi.impl.operationexecutor.impl.OperationQueue)2 PartitionOperationThread (com.hazelcast.spi.impl.operationexecutor.impl.PartitionOperationThread)2 NightlyTest (com.hazelcast.test.annotation.NightlyTest)2 CountDownLatch (java.util.concurrent.CountDownLatch)2 MemberImpl (com.hazelcast.instance.MemberImpl)1 Address (com.hazelcast.nio.Address)1 UuidUtil.newUnsecureUuidString (com.hazelcast.util.UuidUtil.newUnsecureUuidString)1 InetAddress (java.net.InetAddress)1 HashMap (java.util.HashMap)1