use of org.ff4j.FF4j in project ff4j by ff4j.
the class FF4jTest method testCreateSchema.
@Test
public void testCreateSchema() {
FF4j ff4j = new FF4j();
ff4j.createSchema();
ff4j.setFeatureStore(null);
ff4j.setPropertiesStore(null);
ff4j.setEventRepository(null);
// No error event with null elements
ff4j.createSchema();
Assert.assertNotNull(ff4j);
}
use of org.ff4j.FF4j in project ff4j by ff4j.
the class FeatureStoreAuditProxyTest method initStore.
/**
* {@inheritDoc}
*/
@Override
public FeatureStore initStore() {
FF4j ff4j = new FF4j();
InMemoryFeatureStore imfs = new InMemoryFeatureStore();
imfs.setLocation("ff4j.xml");
ff4j.setFeatureStore(imfs);
return new FeatureStoreAuditProxy(ff4j, imfs);
}
use of org.ff4j.FF4j in project ff4j by ff4j.
the class CoreFeatureStoreTestSupport method setUp.
/**
* {@inheritDoc}
*/
@Before
public void setUp() throws Exception {
ff4j = new FF4j();
FeatureStore fs = initStore();
ff4j.setFeatureStore(fs);
testedStore = fs;
assertFf4j = new AssertFf4j(ff4j);
}
use of org.ff4j.FF4j in project ff4j by ff4j.
the class PropertyStoreAuditProxyTest method initPropertyStore.
/**
* {@inheritDoc}
*/
@Override
protected PropertyStore initPropertyStore() {
FF4j ff4j = new FF4j();
PropertyStore ps = new InMemoryPropertyStore("ff4j.xml");
ff4j.setPropertiesStore(ps);
return new PropertyStoreAuditProxy(ff4j, ps);
}
use of org.ff4j.FF4j in project ff4j by ff4j.
the class CacheProxyTest method testCacheProxy.
@Test
public void testCacheProxy() {
FF4j myFF4J = new FF4j();
Assert.assertNull(myFF4J.getCacheProxy());
myFF4J.setEnableAudit(true);
Assert.assertNull(myFF4J.getCacheProxy());
Assert.assertNotNull(myFF4J.getConcreteFeatureStore());
}
Aggregations