use of org.ff4j.web.jersey2.store.PropertyStoreHttp in project ff4j by ff4j.
the class FeatureStoreHttpSecured method testReadFeature.
@Test
public void testReadFeature() {
String targetRestApiURL = "http://localhost:8080/api/ff4j/";
String userName = "user";
String userPassword = "userPass";
// Init FF4j as HTTP CLIENT
FF4j ff4j = new FF4j();
ff4j.setFeatureStore(new FeatureStoreHttp(targetRestApiURL, userName, userPassword));
ff4j.setPropertiesStore(new PropertyStoreHttp(targetRestApiURL, userName, userPassword));
Feature f1 = ff4j.getFeatureStore().read("f1");
System.out.println(f1);
}
Aggregations