@Test public void testNegativeNotFoundClassParam() throws ConfigurationException { InputStream stream = getClass().getClassLoader().getResourceAsStream("failing-no-param-class-sejda-config.xml"); expected.expectMessage("Unable to find the configured bla.bla.not.existing.Class"); when(provider.getConfigurationStream()).thenReturn(stream); XmlConfigurationStrategy.newInstance(provider); }
static XmlConfigurationStrategy newInstance(ConfigurationStreamProvider provider) throws ConfigurationException { InputStream stream = null; try { stream = provider.getConfigurationStream(); return new XmlConfigurationStrategy(stream); } finally { IOUtils.closeQuietly(stream); } }
XmlConfigurationStrategy implements ConfigurationStrategy { static XmlConfigurationStrategy newInstance(ConfigurationStreamProvider provider) throws ConfigurationException { InputStream stream = null; try { stream = provider.getConfigurationStream(); return new XmlConfigurationStrategy(stream); } finally { IOUtils.closeQuietly(stream); } } }
XmlConfigurationStrategy implements ConfigurationStrategy { static XmlConfigurationStrategy newInstance(ConfigurationStreamProvider provider) throws ConfigurationException { InputStream stream = null; try { stream = provider.getConfigurationStream(); return new XmlConfigurationStrategy(stream); } finally { IOUtils.closeQuietly(stream); } } private  XmlConfigurationStrategy(InputStream input); }
XmlConfigurationStrategy implements ConfigurationStrategy { static XmlConfigurationStrategy newInstance(ConfigurationStreamProvider provider) throws ConfigurationException { InputStream stream = null; try { stream = provider.getConfigurationStream(); return new XmlConfigurationStrategy(stream); } finally { IOUtils.closeQuietly(stream); } } private  XmlConfigurationStrategy(InputStream input); @Override Class<? extends NotificationStrategy> getNotificationStrategy(); @Override @SuppressWarnings("rawtypes") Map<Class<? extends TaskParameters>, Class<? extends Task>> getTasksMap(); @Override boolean isValidation(); @Override boolean isIgnoreXmlConfiguration(); }
XmlConfigurationStrategy implements ConfigurationStrategy { static XmlConfigurationStrategy newInstance(ConfigurationStreamProvider provider) throws ConfigurationException { InputStream stream = null; try { stream = provider.getConfigurationStream(); return new XmlConfigurationStrategy(stream); } finally { IOUtils.closeQuietly(stream); } } private  XmlConfigurationStrategy(InputStream input); @Override Class<? extends NotificationStrategy> getNotificationStrategy(); @Override @SuppressWarnings("rawtypes") Map<Class<? extends TaskParameters>, Class<? extends Task>> getTasksMap(); @Override boolean isValidation(); @Override boolean isIgnoreXmlConfiguration();  }