@Test public void testPut() { assertThat( cachemanager.get( DS_NAME ), is( nullValue() ) ); DataSource ds = mock( DataSource.class ); cachemanager.put( DS_NAME, ds ); assertThat( cachemanager.get( DS_NAME ), is( notNullValue() ) ); }
public void put( final String name, final DataSource pool ) { backend.put( name, pool ); }
StaticDataSourceCacheManager implements DataSourceCacheManager, DataSourceCache { public void put( final String name, final DataSource pool ) { backend.put( name, pool ); } }
StaticDataSourceCacheManager implements DataSourceCacheManager, DataSourceCache { public void put( final String name, final DataSource pool ) { backend.put( name, pool ); } StaticDataSourceCacheManager(); }
StaticDataSourceCacheManager implements DataSourceCacheManager, DataSourceCache { public void put( final String name, final DataSource pool ) { backend.put( name, pool ); } 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 void put( final String name, final DataSource pool ) { backend.put( name, pool ); } StaticDataSourceCacheManager(); void put( final String name, final DataSource pool ); void clear(); void remove( final String dsName ); DataSource get( final String dsName ); DataSourceCache getDataSourceCache();  }