use of com.hazelcast.internal.config.CachePartitionLostListenerConfigReadOnly in project hazelcast by hazelcast.
the class CachePartitionLostListenerConfigTest method testCachePartitionLostListenerReadOnlyConfig_withClassName.
@Test(expected = UnsupportedOperationException.class)
public void testCachePartitionLostListenerReadOnlyConfig_withClassName() {
CachePartitionLostListenerConfigReadOnly readOnly = new CachePartitionLostListenerConfigReadOnly(new CachePartitionLostListenerConfig());
readOnly.setClassName("com.hz");
}
use of com.hazelcast.internal.config.CachePartitionLostListenerConfigReadOnly in project hazelcast by hazelcast.
the class CachePartitionLostListenerConfigTest method testCachePartitionLostListenerReadOnlyConfig_withEventListenerImplementation.
@Test(expected = UnsupportedOperationException.class)
public void testCachePartitionLostListenerReadOnlyConfig_withEventListenerImplementation() {
CachePartitionLostListenerConfigReadOnly readOnly = new CachePartitionLostListenerConfigReadOnly(new CachePartitionLostListenerConfig());
readOnly.setImplementation(mock(EventListener.class));
}
use of com.hazelcast.internal.config.CachePartitionLostListenerConfigReadOnly in project hazelcast by hazelcast.
the class CachePartitionLostListenerConfigTest method testCachePartitionLostListenerReadOnlyConfig_withImplementation.
@Test(expected = UnsupportedOperationException.class)
public void testCachePartitionLostListenerReadOnlyConfig_withImplementation() {
CachePartitionLostListener listener = mock(CachePartitionLostListener.class);
CachePartitionLostListenerConfig listenerConfig = new CachePartitionLostListenerConfig(listener);
CachePartitionLostListenerConfigReadOnly readOnly = new CachePartitionLostListenerConfigReadOnly(listenerConfig);
assertEquals(listener, readOnly.getImplementation());
readOnly.setImplementation(mock(CachePartitionLostListener.class));
}
Aggregations