use of com.hazelcast.core.PartitionService in project hazelcast by hazelcast.
the class PartitionServiceProxyTest method testGetPartition.
@Test
public void testGetPartition() {
String key = "Key";
PartitionService clientPartitionService = client.getPartitionService();
Partition clientPartition = clientPartitionService.getPartition(key);
PartitionService serverPartitionService = server.getPartitionService();
Partition serverPartition = serverPartitionService.getPartition(key);
assertEquals(clientPartition.getPartitionId(), serverPartition.getPartitionId());
}
use of com.hazelcast.core.PartitionService in project hazelcast by hazelcast.
the class PartitionServiceProxyTest method testAddMigrationListener.
@Test(expected = UnsupportedOperationException.class)
public void testAddMigrationListener() throws Exception {
PartitionService p = client.getPartitionService();
p.addMigrationListener(new DumMigrationListener());
}
Aggregations