use of org.ff4j.property.PropertyLogLevel in project ff4j by ff4j.
the class PropertyStoreArchaiusPolledSourceTest method updateOK.
/**
* TDD.
*/
@Override
@Test
public void updateOK() {
// Given
testedStore.createProperty(new PropertyLogLevel(UPDATE_OK, LogLevel.ERROR));
// When
testedStore.updateProperty(UPDATE_OK, "INFO");
// Then
Assert.assertEquals("INFO", testedStore.readProperty(UPDATE_OK).getValue());
}
use of org.ff4j.property.PropertyLogLevel in project ff4j by ff4j.
the class PropertyStoreCommonsConfigTest method updateOK.
/**
* TDD.
*/
@Override
@Test
public void updateOK() {
// Given
testedStore.createProperty(new PropertyLogLevel(UPDATE_OK, LogLevel.ERROR));
// When
testedStore.updateProperty(UPDATE_OK, "INFO");
// Then
Assert.assertEquals("INFO", testedStore.readProperty(UPDATE_OK).getValue());
}
use of org.ff4j.property.PropertyLogLevel in project ff4j by ff4j.
the class PropertyStoreTestSupport method addPropertyOKLogLevel.
/**
* TDD.
*/
@Test
public void addPropertyOKLogLevel() {
// Given
// Assert.assertFalse(testedStore.exist("log"));
// When
testedStore.createProperty(new PropertyLogLevel("logi", LogLevel.DEBUG));
// Then
Assert.assertTrue(testedStore.existProperty("logi"));
}
use of org.ff4j.property.PropertyLogLevel in project ff4j by ff4j.
the class AbstractPropertyStoreJunitTest method updateOK.
/**
* TDD.
*/
@Test
public void updateOK() {
// Given
testedStore.createProperty(new PropertyLogLevel("log", LogLevel.ERROR));
// When
testedStore.updateProperty("log", "INFO");
// Then
Assert.assertEquals(LogLevel.INFO, testedStore.readProperty("log").getValue());
}
use of org.ff4j.property.PropertyLogLevel in project ff4j by ff4j.
the class AbstractPropertyStoreJunitTest method addPropertyKOAlreadyExist.
/**
* TDD.
*/
@Test(expected = PropertyAlreadyExistException.class)
public void addPropertyKOAlreadyExist() {
// Given
testedStore.createProperty(new PropertyLogLevel("log", LogLevel.DEBUG));
Assert.assertTrue(testedStore.existProperty("log"));
// When
testedStore.createProperty(new PropertyLogLevel("log", LogLevel.DEBUG));
// Then expect to fail
}
Aggregations