*/
public void genericProcessorNameConfigurationTest(final String processorName)
throws Exception {
final ThreadLocal<Exception> processorsCreationException = new ThreadLocal<Exception>();
try {
final ConfigurableWroFilter filter = new ConfigurableWroFilter() {
@Override
protected WroManagerFactory newWroManagerFactory() {
final WroManagerFactory original = super.newWroManagerFactory();
try {
original.create().getProcessorsFactory().getPreProcessors();
} catch (final Exception e) {
LOG.debug("caught exception: ", e);
processorsCreationException.set(e);
}
return original;
}
};
final Properties properties = new Properties();
properties.setProperty(ConfigurableProcessorsFactory.PARAM_PRE_PROCESSORS, processorName);
filter.setProperties(properties);
filter.init(mockFilterConfig);
} catch (final Exception e) {
LOG.error("exception occured", e);
Assert.fail("Shouldn't fail with exception " + e.getMessage());
}
if (processorsCreationException.get() != null) {