UFJSPluginProcessor extends AbstractRuntimePluginProcessor { @Override public boolean shouldProcess(String pluginName) { return pluginName.endsWith(PluginProcessorType.JS.getExtension()) && !pluginName.endsWith(PluginProcessorType.GWT.getExtension()); } UFJSPluginProcessor(); @Inject  UFJSPluginProcessor(final Event<PluginAddedEvent> pluginAddedEvent,
                               final Event<PluginUpdatedEvent> pluginUpdatedEvent); @Override boolean shouldProcess(String pluginName);  }
@Test public void shouldProcessTest() throws Exception { assertTrue(processor.shouldProcess("pluginname.js")); assertFalse(processor.shouldProcess("pluginname.nocache.js")); assertFalse(processor.shouldProcess("pluginname.html")); }