use of org.apache.logging.log4j.plugins.util.PluginType in project logging-log4j2 by apache.
the class PluginProcessorTest method testFakePluginAliasesContainSameInformation.
@Test
public void testFakePluginAliasesContainSameInformation() throws Exception {
final PluginAliases aliases = FakePlugin.class.getAnnotation(PluginAliases.class);
for (final String alias : aliases.value()) {
final List<PluginType<?>> list = pluginService.getCategory(p.category());
assertNotNull(list);
final PluginEntry fake = getEntry(list, alias);
assertNotNull(fake);
verifyFakePluginEntry(alias, fake);
}
}
use of org.apache.logging.log4j.plugins.util.PluginType in project logging-log4j2 by apache.
the class PluginProcessorTest method testFakePluginFoundWithCorrectInformation.
@Test
public void testFakePluginFoundWithCorrectInformation() throws Exception {
final List<PluginType<?>> list = pluginService.getCategory(p.category());
assertNotNull(list);
final PluginEntry fake = getEntry(list, p.name());
assertNotNull(fake);
verifyFakePluginEntry(p.name(), fake);
}
Aggregations