use of com.tangosol.net.cache.CacheMap in project coherence-spring by coherence-community.
the class CoherenceNamedCacheConfigurationViewTest method shouldInjectSuperTypeCacheMap.
@Test
@SuppressWarnings("rawtypes")
void shouldInjectSuperTypeCacheMap() {
SuperTypesBean bean = this.ctx.getBean(SuperTypesBean.class);
CacheMap map = bean.getCacheMap();
assertThat(map, is(notNullValue()));
}
use of com.tangosol.net.cache.CacheMap in project coherence-spring by coherence-community.
the class CoherenceGenericConverterTests method testContinuousQueryCacheConversion.
@Test
public void testContinuousQueryCacheConversion() {
final Map map = this.conversionService.convert(this.mockedContinuousQueryCache, Map.class);
assertThat(map).isSameAs(this.mockedContinuousQueryCache);
final ContinuousQueryCache continuousQueryCache = this.conversionService.convert(this.mockedContinuousQueryCache, ContinuousQueryCache.class);
assertThat(continuousQueryCache).isSameAs(this.mockedContinuousQueryCache);
final AbstractKeySetBasedMap abstractKeySetBasedMap = this.conversionService.convert(this.mockedContinuousQueryCache, AbstractKeySetBasedMap.class);
assertThat(abstractKeySetBasedMap).isSameAs(this.mockedContinuousQueryCache);
final AbstractKeyBasedMap abstractKeyBasedMap = this.conversionService.convert(this.mockedContinuousQueryCache, AbstractKeyBasedMap.class);
assertThat(abstractKeyBasedMap).isSameAs(this.mockedContinuousQueryCache);
final NamedCache namedCache = this.conversionService.convert(this.mockedContinuousQueryCache, NamedCache.class);
assertThat(namedCache).isSameAs(this.mockedContinuousQueryCache);
final NamedMap namedMap = this.conversionService.convert(this.mockedContinuousQueryCache, NamedMap.class);
assertThat(namedMap).isSameAs(this.mockedContinuousQueryCache);
final CacheMap cacheMap = this.conversionService.convert(this.mockedContinuousQueryCache, CacheMap.class);
assertThat(cacheMap).isSameAs(this.mockedContinuousQueryCache);
final NamedCollection namedCollection = this.conversionService.convert(this.mockedContinuousQueryCache, NamedCollection.class);
assertThat(namedCollection).isSameAs(this.mockedContinuousQueryCache);
final ObservableMap observableMap = this.conversionService.convert(this.mockedContinuousQueryCache, ObservableMap.class);
assertThat(observableMap).isSameAs(this.mockedContinuousQueryCache);
final ConcurrentMap concurrentMap = this.conversionService.convert(this.mockedContinuousQueryCache, ConcurrentMap.class);
assertThat(concurrentMap).isSameAs(this.mockedContinuousQueryCache);
final QueryMap queryMap = this.conversionService.convert(this.mockedContinuousQueryCache, QueryMap.class);
assertThat(queryMap).isSameAs(this.mockedContinuousQueryCache);
final InvocableMap invocableMap = this.conversionService.convert(this.mockedContinuousQueryCache, InvocableMap.class);
assertThat(invocableMap).isSameAs(this.mockedContinuousQueryCache);
final Releasable releasable = this.conversionService.convert(this.mockedContinuousQueryCache, Releasable.class);
assertThat(releasable).isSameAs(this.mockedContinuousQueryCache);
}
use of com.tangosol.net.cache.CacheMap in project coherence-spring by coherence-community.
the class CoherenceNamedCacheConfigurationNamedMapAnnotationTests method shouldInjectSuperTypeCacheMap.
@Test
void shouldInjectSuperTypeCacheMap() {
CoherenceNamedCacheConfigurationNamedMapAnnotationTests.SuperTypesBean bean = this.ctx.getBean(CoherenceNamedCacheConfigurationNamedMapAnnotationTests.SuperTypesBean.class);
CacheMap map = bean.getCacheMap();
assertThat(map, is(notNullValue()));
}
use of com.tangosol.net.cache.CacheMap in project micronaut-coherence by micronaut-projects.
the class NamedCacheFactoriesNamedMapTest method shouldInjectSuperTypeCacheMap.
@Test
void shouldInjectSuperTypeCacheMap() {
SuperTypesBean bean = ctx.getBean(SuperTypesBean.class);
CacheMap map = bean.getCacheMap();
assertThat(map, is(notNullValue()));
assertThat(map, is(sameInstance(bean.getNamedMap())));
}
Aggregations