use of org.ff4j.consul.store.FeatureStoreConsul in project ff4j by ff4j.
the class FeatureStoreConsulTestIT method initStore.
/**
* {@inheritDoc}
*/
protected FeatureStore initStore() {
ConsulConnection connection = new ConsulConnection();
FeatureStoreConsul consulStore = new FeatureStoreConsul(connection);
consulStore.importFeaturesFromXmlFile("ff4j.xml");
return consulStore;
}
use of org.ff4j.consul.store.FeatureStoreConsul in project ff4j by ff4j.
the class FeatureStoreConsulEmbeddedTest method initStore.
/**
* {@inheritDoc}
*/
protected FeatureStore initStore() {
Consul c = Consul.builder().withUrl("http://localhost:8800").build();
ConsulConnection connection = new ConsulConnection(c);
FeatureStoreConsul ehcacheStore = new FeatureStoreConsul(connection);
ehcacheStore.importFeaturesFromXmlFile("ff4j.xml");
return ehcacheStore;
}
Aggregations