Search in sources :

Example 1 with RequireAssertEnabled

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

the class MemberMapTest method testConstructor_whenMapsHaveDifferentMembers_thenThrowAssertionError.

@Test(expected = AssertionError.class)
@RequireAssertEnabled
public void testConstructor_whenMapsHaveDifferentMembers_thenThrowAssertionError() {
    Map<Address, MemberImpl> addressMap = new HashMap<Address, MemberImpl>();
    Map<String, MemberImpl> uuidMap = new HashMap<String, MemberImpl>();
    MemberImpl addressMember = newMember(5701);
    MemberImpl uuidMember = newMember(5702);
    addressMap.put(addressMember.getAddress(), addressMember);
    uuidMap.put(uuidMember.getUuid(), uuidMember);
    new MemberMap(addressMap, uuidMap);
}
Also used : Address(com.hazelcast.nio.Address) InetAddress(java.net.InetAddress) HashMap(java.util.HashMap) MemberImpl(com.hazelcast.instance.MemberImpl) UuidUtil.newUnsecureUuidString(com.hazelcast.util.UuidUtil.newUnsecureUuidString) RequireAssertEnabled(com.hazelcast.test.RequireAssertEnabled) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test) ParallelTest(com.hazelcast.test.annotation.ParallelTest)

Example 2 with RequireAssertEnabled

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

the class HashSlotArray12byteKeyImplTest method testCursor_key2_withoutAdvance.

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

Example 3 with RequireAssertEnabled

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

the class HashSlotArray12byteKeyImplTest method testCursor_key1_withoutAdvance.

// Cursor tests
@Test(expected = AssertionError.class)
@RequireAssertEnabled
public void testCursor_key1_withoutAdvance() {
    HashSlotCursor12byteKey cursor = hsa.cursor();
    cursor.key1();
}
Also used : HashSlotCursor12byteKey(com.hazelcast.internal.util.hashslot.HashSlotCursor12byteKey) RequireAssertEnabled(com.hazelcast.test.RequireAssertEnabled) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Example 4 with RequireAssertEnabled

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

the class HashSlotArray16byteKeyImplTest 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 5 with RequireAssertEnabled

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

the class HashSlotArray16byteKeyImplTest method testCursor_key1_withoutAdvance.

// Cursor tests
@Test(expected = AssertionError.class)
@RequireAssertEnabled
public void testCursor_key1_withoutAdvance() {
    HashSlotCursor16byteKey cursor = hsa.cursor();
    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