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);
}
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();
}
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();
}
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();
}
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();
}
Aggregations