use of org.ff4j.property.PropertyLogLevel in project ff4j by ff4j.
the class PropertyTest method tesInitPropertyLogLevel.
@Test
public void tesInitPropertyLogLevel() {
new PropertyLogLevel();
PropertyLogLevel d1 = new PropertyLogLevel("DEBUG");
d1.error();
d1.fatal();
d1.warn();
d1.debug();
d1.info();
d1.trace();
}
use of org.ff4j.property.PropertyLogLevel in project ff4j by ff4j.
the class PropertyStoreAwsSSMIT method updateOK.
@Override
@Test
public void updateOK() {
// Given
testedStore.createProperty(new PropertyLogLevel(UPDATE_OK, PropertyLogLevel.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 PropertyStoreAwsSSMIT method readOKFixed.
@Override
@Test
public void readOKFixed() {
// Given
testedStore.createProperty(new PropertyLogLevel(READ_OK_FIXED, PropertyLogLevel.LogLevel.ERROR));
// When
Property<?> log = testedStore.readProperty(READ_OK_FIXED);
// Then
Assert.assertNotNull(log);
Assert.assertNotNull(log.getName());
Assert.assertEquals(READ_OK_FIXED, log.getName());
Assert.assertEquals(PropertyLogLevel.LogLevel.ERROR.name(), log.getValue());
}
use of org.ff4j.property.PropertyLogLevel in project ff4j by ff4j.
the class PropertyStoreAwsSSMTest method updateOK.
@Override
@Test
public void updateOK() {
// Given
testedStore.createProperty(new PropertyLogLevel(UPDATE_OK, PropertyLogLevel.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 PropertyStoreArchaiusPolledSourceTest method readOKFixed.
/**
* TDD.
*/
@Override
@Test
public void readOKFixed() {
// Given
testedStore.createProperty(new PropertyLogLevel(READ_OK_FIXED, LogLevel.ERROR));
// When
Property<?> log = testedStore.readProperty(READ_OK_FIXED);
// Then
Assert.assertNotNull(log);
Assert.assertNotNull(log.getName());
Assert.assertEquals(READ_OK_FIXED, log.getName());
Assert.assertEquals(LogLevel.ERROR.name(), log.getValue());
}
Aggregations