@Test void testCreateHierarchy() { final File dir = new File(getClass().getResource(nsDoc).getFile()).getParentFile(); assertFalse(FileNamespaceService.shouldCreateDirectories(null)); assertFalse(FileNamespaceService.shouldCreateDirectories(dir)); assertTrue(FileNamespaceService.shouldCreateDirectories(new File("nonexistent2/other"))); }
static boolean shouldCreateDirectories(final File parent) { return parent != null && !parent.exists(); }
FileNamespaceService implements NamespaceService { static boolean shouldCreateDirectories(final File parent) { return parent != null && !parent.exists(); } }
FileNamespaceService implements NamespaceService { static boolean shouldCreateDirectories(final File parent) { return parent != null && !parent.exists(); } FileNamespaceService();  FileNamespaceService(final String path); }
FileNamespaceService implements NamespaceService { static boolean shouldCreateDirectories(final File parent) { return parent != null && !parent.exists(); } FileNamespaceService();  FileNamespaceService(final String path); @Override Map<String, String> getNamespaces(); @Override boolean setPrefix(final String prefix, final String namespace); }
FileNamespaceService implements NamespaceService { static boolean shouldCreateDirectories(final File parent) { return parent != null && !parent.exists(); } 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; }