@Test void testWriteCreateDirectories() { final File file = new File(getClass().getResource(nsDoc).getFile()); final File nonexistent = new File(file.getParentFile(), "nonexistent3/dir/file.json"); final Map<String, String> data = singletonMap("dcterms", "http: assertDoesNotThrow(() -> FileNamespaceService.write(nonexistent, data, true)); }
static void write(final String filePath, final Map<String, String> data) { final File file = new File(filePath); write(file, data, shouldCreateDirectories(file.getParentFile())); }
FileNamespaceService implements NamespaceService { static void write(final String filePath, final Map<String, String> data) { final File file = new File(filePath); write(file, data, shouldCreateDirectories(file.getParentFile())); } }
FileNamespaceService implements NamespaceService { static void write(final String filePath, final Map<String, String> data) { final File file = new File(filePath); write(file, data, shouldCreateDirectories(file.getParentFile())); } FileNamespaceService();  FileNamespaceService(final String path); }
FileNamespaceService implements NamespaceService { static void write(final String filePath, final Map<String, String> data) { final File file = new File(filePath); write(file, data, shouldCreateDirectories(file.getParentFile())); } FileNamespaceService();  FileNamespaceService(final String path); @Override Map<String, String> getNamespaces(); @Override boolean setPrefix(final String prefix, final String namespace); }
FileNamespaceService implements NamespaceService { static void write(final String filePath, final Map<String, String> data) { final File file = new File(filePath); write(file, data, shouldCreateDirectories(file.getParentFile())); } 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; }