use of org.ff4j.property.PropertyDate in project ff4j by ff4j.
the class PropertyStoreEhCacheTest method addPropertyOKDate.
/**
* TDD.
*/
@Test
@Override
public void addPropertyOKDate() {
// Given
// Assert.assertFalse(testedStore.exist("log"));
// When
testedStore.createProperty(new PropertyDate("ddateee", new Date()));
// Then
Assert.assertTrue(testedStore.existProperty("ddateee"));
}
use of org.ff4j.property.PropertyDate in project ff4j by ff4j.
the class PropertyTest method tesInitPropertyDate2.
@Test(expected = IllegalArgumentException.class)
public void tesInitPropertyDate2() {
PropertyDate d0 = new PropertyDate();
d0.fromString("invalid");
}
use of org.ff4j.property.PropertyDate in project ff4j by ff4j.
the class AbstractPropertyStoreJunitTest method addPropertyOKDate.
/**
* TDD.
*/
@Test
public void addPropertyOKDate() {
// Given
// Assert.assertFalse(testedStore.exist("log"));
// When
testedStore.createProperty(new PropertyDate("ddate", new Date()));
// Then
Assert.assertTrue(testedStore.existProperty("ddate"));
}
use of org.ff4j.property.PropertyDate in project ff4j by ff4j.
the class InMemoryPropertiesStoreTest method testProperty.
public void testProperty() {
FF4j ff4j = new FF4j("ff4j.xml");
ff4j.getPropertiesStore().createProperty(new PropertyDate("property_3", new Date()));
Property<?> ap = ff4j.getPropertiesStore().readProperty("property_3");
PropertyDate pDate = (PropertyDate) ap;
pDate.setValue(new Date());
ff4j.getPropertiesStore().updateProperty(pDate);
ff4j.getPropertiesStore().deleteProperty("property_3");
}
use of org.ff4j.property.PropertyDate in project ff4j by ff4j.
the class PropertyStoreTestSupport method addPropertyOKDate.
/**
* TDD.
*/
@Test
public void addPropertyOKDate() {
// Given
// Assert.assertFalse(testedStore.exist("log"));
// When
testedStore.createProperty(new PropertyDate("ddate", new Date()));
// Then
Assert.assertTrue(testedStore.existProperty("ddate"));
}
Aggregations