@Test public void readServicesFileNone() { List<String> names = locator.readServiceClassNames(createInput("")); assertNotNull(names); assertTrue(names.isEmpty()); }
protected List<String> readServiceClassNames(URL url) { try (InputStream stream = url.openStream()) { return readServiceClassNames(stream); } catch (IOException e) { logReadServiceClassNamesFailure(e); } return Collections.emptyList(); }
ServiceLocator { protected List<String> readServiceClassNames(URL url) { try (InputStream stream = url.openStream()) { return readServiceClassNames(stream); } catch (IOException e) { logReadServiceClassNamesFailure(e); } return Collections.emptyList(); } }
ServiceLocator { protected List<String> readServiceClassNames(URL url) { try (InputStream stream = url.openStream()) { return readServiceClassNames(stream); } catch (IOException e) { logReadServiceClassNamesFailure(e); } return Collections.emptyList(); } protected  ServiceLocator(ClassLoader classLoader); }
ServiceLocator { protected List<String> readServiceClassNames(URL url) { try (InputStream stream = url.openStream()) { return readServiceClassNames(stream); } catch (IOException e) { logReadServiceClassNamesFailure(e); } return Collections.emptyList(); } protected  ServiceLocator(ClassLoader classLoader); static ServiceLocator getInstance(ClassLoader classLoader); static ServiceLocator getInstance(); MarkupLanguage getMarkupLanguage(final String languageName); Set<MarkupLanguage> getAllMarkupLanguages(); static void setImplementation(Class<? extends ServiceLocator> implementationClass); }
ServiceLocator { protected List<String> readServiceClassNames(URL url) { try (InputStream stream = url.openStream()) { return readServiceClassNames(stream); } catch (IOException e) { logReadServiceClassNamesFailure(e); } return Collections.emptyList(); } protected  ServiceLocator(ClassLoader classLoader); static ServiceLocator getInstance(ClassLoader classLoader); static ServiceLocator getInstance(); MarkupLanguage getMarkupLanguage(final String languageName); Set<MarkupLanguage> getAllMarkupLanguages(); static void setImplementation(Class<? extends ServiceLocator> implementationClass);  }