use of org.ff4j.cache.FF4jCacheProxy in project ff4j by ff4j.
the class FeatureStoreStepDef method the_feature_store_is_cached.
@Given("^the feature store is cached$")
public void the_feature_store_is_cached() throws Throwable {
FF4jCacheProxy proxy = new FF4jCacheProxy(ff4j.getFeatureStore(), null, new InMemoryCacheManager());
ff4j.setFeatureStore(proxy);
}
use of org.ff4j.cache.FF4jCacheProxy in project ff4j by ff4j.
the class PropertyStoreServices method clearCachedPropertyStore.
public void clearCachedPropertyStore() {
FF4jCacheProxy cacheProxy = ff4j.getCacheProxy();
if (cacheProxy == null) {
throw new PropertyStoreNotCached();
}
cacheProxy.getCacheManager().clearProperties();
}
use of org.ff4j.cache.FF4jCacheProxy in project ff4j by ff4j.
the class MappingUtilsTest method testJsonMapping.
@Test
public void testJsonMapping() {
JsonUtils.permissionsAsJson(null);
JsonUtils.customPropertiesAsJson(null);
JsonUtils.customPropertiesAsJson(new HashMap<String, Property<?>>());
FeatureStore store1 = new InMemoryFeatureStore();
FF4jCacheProxy proxy = new FF4jCacheProxy(store1, null, null);
JsonUtils.cacheJson(proxy);
}
use of org.ff4j.cache.FF4jCacheProxy in project ff4j by ff4j.
the class FF4JServicesStepDef method the_feature_store_is_cached.
@Given("^the feature store is cached$")
public void the_feature_store_is_cached() throws Throwable {
FF4jCacheProxy proxy = new FF4jCacheProxy(ff4j.getFeatureStore(), null, new InMemoryCacheManager());
ff4j.setFeatureStore(proxy);
}
use of org.ff4j.cache.FF4jCacheProxy in project ff4j by ff4j.
the class PropertyStoreServicesStepDef method the_property_store_is_cached.
@Given("^the property store is cached$")
public void the_property_store_is_cached() throws Throwable {
FF4jCacheProxy proxy = new FF4jCacheProxy(ff4j.getFeatureStore(), ff4j.getPropertiesStore(), new InMemoryCacheManager());
ff4j.setPropertiesStore(proxy);
ff4j.setFeatureStore(proxy);
}
Aggregations