use of org.apache.jackrabbit.oak.spi.blob.SharedBackend in project jackrabbit-oak by apache.
the class DataStoreServiceTest method configCachingFileDataStore.
/**
*
* Test {@link CachingFileDataStore} is returned when cacheSize > 0 by default.
*/
@Test
public void configCachingFileDataStore() throws Exception {
String nasPath = folder.getRoot().getAbsolutePath() + "/NASPath";
String cachePath = folder.getRoot().getAbsolutePath() + "/cachePath";
DataStore ds = getAssertCachingFileDataStore(nasPath, cachePath);
CachingFileDataStore cds = (CachingFileDataStore) ds;
SharedBackend backend = cds.getBackend();
Properties props = (Properties) getField(backend);
assertEquals("path not equal", nasPath, props.getProperty(FSBackend.FS_BACKEND_PATH));
}
Aggregations