@Test @ExtendWith(TemporaryFolderExtension.class) void getPolicyRootNoPolicyDirTest(TemporaryFolder temporaryFolder) { assertNull(getPolicyRootDir(temporaryFolder.getRoot())); }
@Nullable static File getPolicyRootDir(File rootDir) { final File policyRootDir = new File(rootDir, "policy"); if (!policyRootDir.exists()) { return null; } else if (!policyRootDir.isDirectory()) { throw new ConfigLoadException("Expected directory but was file: " + policyRootDir); } return policyRootDir; }
FolderLoaderUtils { @Nullable static File getPolicyRootDir(File rootDir) { final File policyRootDir = new File(rootDir, "policy"); if (!policyRootDir.exists()) { return null; } else if (!policyRootDir.isDirectory()) { throw new ConfigLoadException("Expected directory but was file: " + policyRootDir); } return policyRootDir; } }
FolderLoaderUtils { @Nullable static File getPolicyRootDir(File rootDir) { final File policyRootDir = new File(rootDir, "policy"); if (!policyRootDir.exists()) { return null; } else if (!policyRootDir.isDirectory()) { throw new ConfigLoadException("Expected directory but was file: " + policyRootDir); } return policyRootDir; } private  FolderLoaderUtils(); }
FolderLoaderUtils { @Nullable static File getPolicyRootDir(File rootDir) { final File policyRootDir = new File(rootDir, "policy"); if (!policyRootDir.exists()) { return null; } else if (!policyRootDir.isDirectory()) { throw new ConfigLoadException("Expected directory but was file: " + policyRootDir); } return policyRootDir; } private  FolderLoaderUtils(); static void createFolders(Bundle bundle, File rootDir, Map<String, E> folderableMap); }
FolderLoaderUtils { @Nullable static File getPolicyRootDir(File rootDir) { final File policyRootDir = new File(rootDir, "policy"); if (!policyRootDir.exists()) { return null; } else if (!policyRootDir.isDirectory()) { throw new ConfigLoadException("Expected directory but was file: " + policyRootDir); } return policyRootDir; } private  FolderLoaderUtils(); static void createFolders(Bundle bundle, File rootDir, Map<String, E> folderableMap); static final String SOAP_RESOURCES_FOLDER; }