@Test void testReadFromJson() { final URL res = FileNamespaceService.class.getResource(nsDoc); try { System.setProperty(FileNamespaceService.CONFIG_FILE_NAMESPACE_PATH, res.getPath()); final NamespaceService svc = new FileNamespaceService(); assertEquals(2, svc.getNamespaces().size(), "Namespace mapping count is incorrect!"); } finally { System.clearProperty(FileNamespaceService.CONFIG_FILE_NAMESPACE_PATH); } }
@Override public Map<String, String> getNamespaces() { return unmodifiableMap(data); }
FileNamespaceService implements NamespaceService { @Override public Map<String, String> getNamespaces() { return unmodifiableMap(data); } }
FileNamespaceService implements NamespaceService { @Override public Map<String, String> getNamespaces() { return unmodifiableMap(data); } FileNamespaceService();  FileNamespaceService(final String path); }
FileNamespaceService implements NamespaceService { @Override public Map<String, String> getNamespaces() { return unmodifiableMap(data); } FileNamespaceService();  FileNamespaceService(final String path); @Override Map<String, String> getNamespaces(); @Override boolean setPrefix(final String prefix, final String namespace); }
FileNamespaceService implements NamespaceService { @Override public Map<String, String> getNamespaces() { return unmodifiableMap(data); } FileNamespaceService();  FileNamespaceService(final String path); @Override Map<String, String> getNamespaces(); @Override boolean setPrefix(final String prefix, final String namespace); static final String CONFIG_FILE_NAMESPACE_PATH; }