use of com.hazelcast.cache.impl.HazelcastServerCachingProvider in project hazelcast by hazelcast.
the class CacheConfigTest method testEntryListenerFactoryFromSimpleCacheConfig.
@Test
public void testEntryListenerFactoryFromSimpleCacheConfig() {
String cacheName = randomString();
Config config = createConfig(cacheName);
HazelcastInstance instance = createHazelcastInstance(config);
HazelcastServerCachingProvider cachingProvider = createServerCachingProvider(instance);
CacheManager cacheManager = cachingProvider.getCacheManager();
Cache<Object, Object> cache = cacheManager.getCache(cacheName);
EntryListener.latch = new CountDownLatch(1);
cache.put(randomString(), randomString());
assertOpenEventually(EntryListener.latch);
}
Aggregations