Search in sources :

Example 56 with Property

use of org.ff4j.property.Property in project ff4j by ff4j.

the class MappingUtilsTest method testJsonMapping.

@Test
public void testJsonMapping() {
    JsonUtils.permissionsAsJson(null);
    JsonUtils.customPropertiesAsJson(null);
    JsonUtils.customPropertiesAsJson(new HashMap<String, Property<?>>());
    FeatureStore store1 = new InMemoryFeatureStore();
    FF4jCacheProxy proxy = new FF4jCacheProxy(store1, null, null);
    JsonUtils.cacheJson(proxy);
}
Also used : InMemoryFeatureStore(org.ff4j.store.InMemoryFeatureStore) PropertyString(org.ff4j.property.PropertyString) FF4jCacheProxy(org.ff4j.cache.FF4jCacheProxy) Property(org.ff4j.property.Property) InMemoryFeatureStore(org.ff4j.store.InMemoryFeatureStore) FeatureStore(org.ff4j.core.FeatureStore) Test(org.junit.Test)

Aggregations

Property (org.ff4j.property.Property)56 HashMap (java.util.HashMap)20 PropertyString (org.ff4j.property.PropertyString)20 Test (org.junit.Test)20 Feature (org.ff4j.core.Feature)16 Map (java.util.Map)11 InputStream (java.io.InputStream)9 XmlParser (org.ff4j.conf.XmlParser)7 InMemoryPropertyStore (org.ff4j.property.store.InMemoryPropertyStore)7 LinkedHashMap (java.util.LinkedHashMap)6 XmlConfig (org.ff4j.conf.XmlConfig)6 ByteArrayInputStream (java.io.ByteArrayInputStream)4 ArrayList (java.util.ArrayList)4 FeatureStore (org.ff4j.core.FeatureStore)4 PropertyAccessException (org.ff4j.exception.PropertyAccessException)4 PropertyStore (org.ff4j.property.store.PropertyStore)4 IOException (java.io.IOException)3 Date (java.util.Date)3 HashSet (java.util.HashSet)3 FF4jCacheProxy (org.ff4j.cache.FF4jCacheProxy)3