Search in sources :

Example 11 with FeatureStore

use of org.ff4j.core.FeatureStore in project ff4j by ff4j.

the class FeatureStoreNeo4jSchemaTest method testCreateSchema.

@Test
public void testCreateSchema() {
    // Given
    FeatureStore fStore = new FeatureStoreNeo4J(graphDb);
    // WHEN
    fStore.createSchema();
    fStore.createSchema();
    // No error here even if calling the method twice
    Assert.assertNotNull(fStore);
}
Also used : FeatureStoreNeo4J(org.ff4j.neo4j.store.FeatureStoreNeo4J) FeatureStore(org.ff4j.core.FeatureStore) Test(org.junit.Test)

Aggregations

FeatureStore (org.ff4j.core.FeatureStore)11 Test (org.junit.Test)7 FF4j (org.ff4j.FF4j)3 PropertyStore (org.ff4j.property.store.PropertyStore)3 InMemoryFeatureStore (org.ff4j.store.InMemoryFeatureStore)3 Map (java.util.Map)2 FF4jCacheProxy (org.ff4j.cache.FF4jCacheProxy)2 Feature (org.ff4j.core.Feature)2 Property (org.ff4j.property.Property)2 PropertyString (org.ff4j.property.PropertyString)2 Ignore (org.junit.Ignore)2 DBCollection (com.mongodb.DBCollection)1 HashMap (java.util.HashMap)1 Document (org.bson.Document)1 FF4JCacheManager (org.ff4j.cache.FF4JCacheManager)1 InMemoryCacheManager (org.ff4j.cache.InMemoryCacheManager)1 Store2CachePollingScheduler (org.ff4j.cache.Store2CachePollingScheduler)1 XmlConfig (org.ff4j.conf.XmlConfig)1 XmlParser (org.ff4j.conf.XmlParser)1 FlippingExecutionContext (org.ff4j.core.FlippingExecutionContext)1