use of org.apache.logging.log4j.core.config.NullConfiguration in project logging-log4j2 by apache.
the class RequiredValidatorTest method testNonNullValue.
@Test
public void testNonNullValue() throws Exception {
node.getAttributes().put("name", "foo");
final ValidatingPlugin validatingPlugin = (ValidatingPlugin) new PluginBuilder(plugin).withConfiguration(new NullConfiguration()).withConfigurationNode(node).build();
assertNotNull(validatingPlugin);
assertEquals("foo", validatingPlugin.getName());
}
Aggregations