use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class PropertyStoreResourceTestIT method testGet.
/**
* TDD.
*/
@Test
public void testGet() {
// Given
Assert.assertTrue(ff4j.getPropertiesStore() instanceof InMemoryPropertyStore);
// When
ClientResponse resHttp = rscPropertyStore().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(InMemoryPropertyStore.class.getCanonicalName()));
}
Aggregations