use of io.aklivity.zilla.runtime.engine.Configuration.ToCharFunction in project zilla by aklivity.
the class ConfigurationTest method shouldSupplyDefaultCharProperty.
@Test
public void shouldSupplyDefaultCharProperty() {
ConfigurationDef configDef = new ConfigurationDef("scope");
CharPropertyDef propertyDef = configDef.property("char.property.name", (ToCharFunction<Configuration>) c -> 'a');
Configuration config = new Configuration();
assertEquals('a', propertyDef.getAsChar(config));
}
Aggregations