use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class FF4JConfigurationTest method initCommonsConfWithFF4j.
@Before
public void initCommonsConfWithFF4j() throws ConfigurationException {
pStore = new InMemoryPropertyStore("ff4j-configuration.xml");
ff4jConf = new FF4jConfiguration();
ff4jConf.setFf4jStore(pStore);
}
use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class FF4JConfigurationTest method testgetKeysNull.
@Test
public void testgetKeysNull() {
// Given
InMemoryPropertyStore tmpStore = new InMemoryPropertyStore();
Configuration tmpConf = new FF4jConfiguration(tmpStore);
Iterator<String> propsKeys = tmpConf.getKeys("z");
Assert.assertFalse(propsKeys.hasNext());
tmpStore.setProperties(null);
Assert.assertFalse(tmpConf.getKeys().hasNext());
Assert.assertFalse(tmpConf.getKeys("z").hasNext());
}
use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class AbstractStepDef method clearPropertyStore.
protected void clearPropertyStore() {
ff4j.setFeatureStore(new InMemoryFeatureStore());
ff4j.setPropertiesStore(new InMemoryPropertyStore());
}
use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class AbstractStepDef method clearFeatureStore.
protected void clearFeatureStore() {
ff4j.setFeatureStore(new InMemoryFeatureStore());
ff4j.setPropertiesStore(new InMemoryPropertyStore());
}
use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class AbstractStepDef method clearPropertyStore.
protected void clearPropertyStore() {
ff4j.setPropertiesStore(new InMemoryPropertyStore());
ff4j.setFeatureStore(new InMemoryFeatureStore());
}
Aggregations