use of org.ff4j.store.InMemoryFeatureStore in project ff4j by ff4j.
the class FeatureStoreResourceTestIT method testGet.
/**
* TDD.
*/
@Test
public void testGet() {
// Given
Assert.assertTrue(ff4j.getFeatureStore() instanceof InMemoryFeatureStore);
// When
ClientResponse resHttp = resourceStore().get(ClientResponse.class);
String resEntity = resHttp.getEntity(String.class);
// Then, HTTPResponse
Assert.assertEquals("Expected status is 200", Status.OK.getStatusCode(), resHttp.getStatus());
Assert.assertNotNull(resEntity);
// Then, Entity Object
Assert.assertTrue(resEntity.contains(InMemoryFeatureStore.class.getCanonicalName()));
}
use of org.ff4j.store.InMemoryFeatureStore in project ff4j by ff4j.
the class AbstractStepDef method clearPropertyStore.
protected void clearPropertyStore() {
ff4j.setFeatureStore(new InMemoryFeatureStore());
ff4j.setPropertiesStore(new InMemoryPropertyStore());
}
use of org.ff4j.store.InMemoryFeatureStore in project ff4j by ff4j.
the class AbstractStepDef method clearFeatureStore.
protected void clearFeatureStore() {
ff4j.setFeatureStore(new InMemoryFeatureStore());
ff4j.setPropertiesStore(new InMemoryPropertyStore());
}
use of org.ff4j.store.InMemoryFeatureStore in project ff4j by ff4j.
the class AbstractStepDef method clearPropertyStore.
protected void clearPropertyStore() {
ff4j.setPropertiesStore(new InMemoryPropertyStore());
ff4j.setFeatureStore(new InMemoryFeatureStore());
}
use of org.ff4j.store.InMemoryFeatureStore in project ff4j by ff4j.
the class AbstractStepDef method clearFeatureStore.
protected void clearFeatureStore() {
ff4j.setPropertiesStore(new InMemoryPropertyStore());
ff4j.setFeatureStore(new InMemoryFeatureStore());
}
Aggregations