use of org.ff4j.store.InMemoryFeatureStore in project ff4j by ff4j.
the class InMemoryFeatureStoreTest method testUnitFeatureInitialization4.
@Test
public void testUnitFeatureInitialization4() {
InMemoryFeatureStore f = new InMemoryFeatureStore();
f.toJson();
f.toString();
f.getFileName();
}
use of org.ff4j.store.InMemoryFeatureStore in project ff4j by ff4j.
the class InMemoryFeatureStoreTest method initStore.
/**
* {@inheritDoc}
*/
@Override
public FeatureStore initStore() {
InMemoryFeatureStore imfs = new InMemoryFeatureStore();
imfs.setLocation("ff4j.xml");
return imfs;
}
use of org.ff4j.store.InMemoryFeatureStore in project ff4j by ff4j.
the class AbstractEventRepositoryTest method setUp.
/**
* {@inheritDoc}
*/
@Before
public void setUp() throws Exception {
repo = initRepository();
publisher = new EventPublisher(repo);
features = new ArrayList<Feature>(new InMemoryFeatureStore("ff4j.xml").readAll().values());
}
use of org.ff4j.store.InMemoryFeatureStore in project ff4j by ff4j.
the class AssertTest method initFF4J.
@Before
public void initFF4J() {
if (assertFF4j == null) {
ff4j = new FF4j();
ff4j.setFeatureStore(new InMemoryFeatureStore("test-ff4j-features.xml"));
ff4j.setPropertiesStore(new InMemoryPropertyStore("test-ff4j-features.xml"));
ff4j.setAuthorizationsManager(new DefaultAuthorisationManager(Util.set("PERM1", "PERM2"), Util.set("PERM1", "PERM2", "PERM3")));
assertFF4j = new AssertFf4j(ff4j);
}
}
use of org.ff4j.store.InMemoryFeatureStore in project ff4j by ff4j.
the class EventRepositoryTestSupport method setUp.
/**
* {@inheritDoc}
*/
@Before
public void setUp() throws Exception {
ff4j = new FF4j();
ff4j.setFeatureStore(new InMemoryFeatureStore("test-ff4j-features.xml"));
ff4j.setPropertiesStore(new InMemoryPropertyStore("test-ff4j-features.xml"));
ff4j.setEventRepository(initRepository());
repo = ff4j.getEventRepository();
}
Aggregations