@Test public void testGetDataSourceCache() { DataSourceCache cache = cachemanager.getDataSourceCache(); assertThat( cache, is( notNullValue() ) ); assertThat( cache, is( CoreMatchers.instanceOf( StaticDataSourceCacheManager.class ) ) ); assertThat( (StaticDataSourceCacheManager) cache, is( equalTo( cachemanager ) ) ); }
public DataSourceCache getDataSourceCache() { return this; }
StaticDataSourceCacheManager implements DataSourceCacheManager, DataSourceCache { public DataSourceCache getDataSourceCache() { return this; } }
StaticDataSourceCacheManager implements DataSourceCacheManager, DataSourceCache { public DataSourceCache getDataSourceCache() { return this; } StaticDataSourceCacheManager(); }
StaticDataSourceCacheManager implements DataSourceCacheManager, DataSourceCache { public DataSourceCache getDataSourceCache() { return this; } StaticDataSourceCacheManager(); void put( final String name, final DataSource pool ); void clear(); void remove( final String dsName ); DataSource get( final String dsName ); DataSourceCache getDataSourceCache(); }
StaticDataSourceCacheManager implements DataSourceCacheManager, DataSourceCache { public DataSourceCache getDataSourceCache() { return this; } StaticDataSourceCacheManager(); void put( final String name, final DataSource pool ); void clear(); void remove( final String dsName ); DataSource get( final String dsName ); DataSourceCache getDataSourceCache();  }