use of com.tangosol.util.ObservableMap in project coherence-spring by coherence-community.
the class CoherenceNamedCacheConfigurationNamedMapTests method shouldInjectSuperTypeObservableMap.
@Test
void shouldInjectSuperTypeObservableMap() {
SuperTypesBean bean = this.ctx.getBean(SuperTypesBean.class);
ObservableMap map = bean.getObservableMap();
assertThat(map, is(notNullValue()));
assertThat(map, is(sameInstance(bean.getNamedMap())));
}
use of com.tangosol.util.ObservableMap in project coherence-spring by coherence-community.
the class CoherenceNamedCacheConfigurationViewTest method shouldInjectSuperTypeObservableMap.
@Test
@SuppressWarnings("rawtypes")
void shouldInjectSuperTypeObservableMap() {
SuperTypesBean bean = this.ctx.getBean(SuperTypesBean.class);
ObservableMap map = bean.getObservableMap();
assertThat(map, is(notNullValue()));
}
use of com.tangosol.util.ObservableMap in project coherence-spring by coherence-community.
the class CoherenceGenericConverterTests method testNamedCacheConversion.
@Test
public void testNamedCacheConversion() {
final Map map = this.conversionService.convert(this.mockedNamedCache, Map.class);
assertThat(map).isSameAs(this.mockedNamedCache);
final NamedCache namedCache = this.conversionService.convert(this.mockedNamedCache, NamedCache.class);
assertThat(namedCache).isSameAs(this.mockedNamedCache);
final NamedMap namedMap = this.conversionService.convert(this.mockedNamedCache, NamedMap.class);
assertThat(namedMap).isSameAs(this.mockedNamedCache);
final CacheMap cacheMap = this.conversionService.convert(this.mockedNamedCache, CacheMap.class);
assertThat(cacheMap).isSameAs(this.mockedNamedCache);
final NamedCollection namedCollection = this.conversionService.convert(this.mockedNamedCache, NamedCollection.class);
assertThat(namedCollection).isSameAs(this.mockedNamedCache);
final ObservableMap observableMap = this.conversionService.convert(this.mockedNamedCache, ObservableMap.class);
assertThat(observableMap).isSameAs(this.mockedNamedCache);
final ConcurrentMap concurrentMap = this.conversionService.convert(this.mockedNamedCache, ConcurrentMap.class);
assertThat(concurrentMap).isSameAs(this.mockedNamedCache);
final QueryMap queryMap = this.conversionService.convert(this.mockedNamedCache, QueryMap.class);
assertThat(queryMap).isSameAs(this.mockedNamedCache);
final InvocableMap invocableMap = this.conversionService.convert(this.mockedNamedCache, InvocableMap.class);
assertThat(invocableMap).isSameAs(this.mockedNamedCache);
final Releasable releasable = this.conversionService.convert(this.mockedNamedCache, Releasable.class);
assertThat(releasable).isSameAs(this.mockedNamedCache);
}
use of com.tangosol.util.ObservableMap in project coherence-spring by coherence-community.
the class CoherenceNamedCacheConfigurationNamedMapAnnotationTests method shouldInjectSuperTypeObservableMap.
@Test
void shouldInjectSuperTypeObservableMap() {
CoherenceNamedCacheConfigurationNamedMapAnnotationTests.SuperTypesBean bean = this.ctx.getBean(CoherenceNamedCacheConfigurationNamedMapAnnotationTests.SuperTypesBean.class);
ObservableMap map = bean.getObservableMap();
assertThat(map, is(notNullValue()));
}
use of com.tangosol.util.ObservableMap in project micronaut-coherence by micronaut-projects.
the class NamedCacheFactoriesTest method shouldInjectSuperTypeObservableMap.
@Test
void shouldInjectSuperTypeObservableMap() {
SuperTypesBean bean = ctx.getBean(SuperTypesBean.class);
ObservableMap map = bean.getObservableMap();
assertThat(map, is(notNullValue()));
assertThat(map, is(sameInstance(bean.getNamedCache())));
}
Aggregations