use of com.hazelcast.test.backup.MapBackupAccessor in project hazelcast by hazelcast.
the class JsonMetadataCreationTest method assertMetadataNotCreated.
private void assertMetadataNotCreated(String mapName, int replicaCount) {
for (int i = 0; i < replicaCount; i++) {
MapBackupAccessor mapBackupAccessor = (MapBackupAccessor) TestBackupUtils.newMapAccessor(instances, mapName, i);
for (int j = 0; j < ENTRY_COUNT; j++) {
Record record = mapBackupAccessor.getRecord(createJsonValue("key", j));
assertNotNull(record);
assertNull(getMetadata(mapName, createJsonValue("key", j), i));
}
}
}
use of com.hazelcast.test.backup.MapBackupAccessor in project hazelcast by hazelcast.
the class JsonMetadataCreationTest method assertMetadataCreated.
private void assertMetadataCreated(String mapName, int replicaCount) {
for (int i = 0; i < replicaCount; i++) {
MapBackupAccessor mapBackupAccessor = (MapBackupAccessor) TestBackupUtils.newMapAccessor(instances, mapName, i);
for (int j = 0; j < ENTRY_COUNT; j++) {
Record record = mapBackupAccessor.getRecord(createJsonValue("key", j));
assertNotNull(record);
HazelcastJsonValue jsonValue = createJsonValue("key", j);
JsonMetadata metadata = getMetadata(mapName, jsonValue, i);
assertMetadata("Replica index=" + i, metadata);
}
}
}
Aggregations