use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class InMemoryPropertiesStoreTest 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 InMemoryPropertiesStoreTest method testDonotImportInvalid.
@Test(expected = IllegalArgumentException.class)
public void testDonotImportInvalid() {
InMemoryPropertyStore f = new InMemoryPropertyStore();
f.importPropertiesFromXmlFile("invalid.xml");
}
use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class InMemoryPropertiesStoreTest method testImportTwice.
@Test
public void testImportTwice() {
InMemoryPropertyStore f = new InMemoryPropertyStore();
f.importPropertiesFromXmlFile("ff4j.xml");
f.importPropertiesFromXmlFile("ff4j.xml");
}
use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class InMemoryPropertiesStoreTest method testDonotImportNull.
@Test(expected = IllegalArgumentException.class)
public void testDonotImportNull() {
InMemoryPropertyStore f = new InMemoryPropertyStore();
f.importPropertiesFromXmlFile(null);
}
use of org.ff4j.property.store.InMemoryPropertyStore in project ff4j by ff4j.
the class AssertTest method initFF4J.
@Before
public void initFF4J() {
if (assertFF4j == null) {
ff4j = new FF4j();
ff4j.setFeatureStore(new InMemoryFeatureStore("test-ff4j-features.xml"));
ff4j.setPropertiesStore(new InMemoryPropertyStore("test-ff4j-features.xml"));
ff4j.setAuthorizationsManager(new DefaultAuthorisationManager(Util.set("PERM1", "PERM2"), Util.set("PERM1", "PERM2", "PERM3")));
assertFF4j = new AssertFf4j(ff4j);
}
}
Aggregations