use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class InMemoryPropertiesStoreTest method testInitStores.
@Test
public void testInitStores() {
new InMemoryPropertyStore(new HashMap<String, Property<?>>());
InputStream in = getClass().getClassLoader().getResourceAsStream("ff4j.xml");
new InMemoryPropertyStore(in);
}
use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class InMemoryPropertiesStoreTest method testInheritMethods.
@Test
public void testInheritMethods() {
InMemoryPropertyStore ip = new InMemoryPropertyStore();
ip.importPropertiesFromXmlFile("ff4j.xml");
Assert.assertNotNull(ip.toJson());
ip.isEmpty();
}
use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class InMemoryPropertiesStoreTest method testEmpty3.
@Test
public void testEmpty3() {
// Given
InMemoryPropertyStore ips = new InMemoryPropertyStore();
ips.createProperty(new PropertyString("P1", "v1"));
Assert.assertFalse(ips.isEmpty());
}
use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class InMemoryPropertiesStoreTest method testListProperties.
@Test
public void testListProperties() {
InMemoryPropertyStore ips = new InMemoryPropertyStore();
ips.setProperties(null);
Assert.assertNull(ips.listPropertyNames());
}
use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class InMemoryPropertiesStoreTest method testEmpty.
@Test
public void testEmpty() {
// Given
InMemoryPropertyStore ips = new InMemoryPropertyStore();
Assert.assertTrue(ips.isEmpty());
}
Aggregations