use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class InMemoryPropertyStoreTest method testGetters.
@Test
public void testGetters() {
InMemoryPropertyStore ips = new InMemoryPropertyStore();
ips.setLocation("test-ff4j-features.xml");
ips.setFileName("invalid.xml");
Assert.assertEquals("invalid.xml", ips.getFileName());
}
use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class InMemoryPropertyStoreTest 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 InMemoryPropertyStoreTest 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 InMemoryPropertyStoreTest method testEmpty2.
@Test
public void testEmpty2() {
// Given
InMemoryPropertyStore ips = new InMemoryPropertyStore();
ips.setProperties(null);
Assert.assertTrue(ips.isEmpty());
}
use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class InMemoryPropertyStoreTest method testInitStores.
@Test
public void testInitStores() {
new InMemoryPropertyStore(new HashMap<String, Property<?>>());
InputStream in = getClass().getClassLoader().getResourceAsStream("test-ff4j-features.xml");
new InMemoryPropertyStore(in);
}
Aggregations