Search in sources :

Example 1 with FeatureStoreMongo

use of org.ff4j.mongo.store.FeatureStoreMongo in project ff4j by ff4j.

the class FeatureStoreMongoCollectionCore1Test method emptyListAttributes.

/**
 * LazyBSONObjectList vs BasicBSONObjectList
 */
@Test
@Ignore
public void emptyListAttributes() throws UnknownHostException {
    MongoCollection<Document> features = getMongoClient().getDatabase("FF4J").getCollection("feature");
    // When
    FeatureStore mongoStore = new FeatureStoreMongo(features, "ff4j.xml");
    // Then (no error)
    Assert.assertTrue(mongoStore.readAll().keySet().size() > 0);
}
Also used : FeatureStoreMongo(org.ff4j.mongo.store.FeatureStoreMongo) Document(org.bson.Document) FeatureStore(org.ff4j.core.FeatureStore) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

Document (org.bson.Document)1 FeatureStore (org.ff4j.core.FeatureStore)1 FeatureStoreMongo (org.ff4j.mongo.store.FeatureStoreMongo)1 Ignore (org.junit.Ignore)1 Test (org.junit.Test)1