ZpeUpdPolLoader implements Closeable { @Override public void close() { if (updMonWorker != null) { updMonWorker.cancel(); } scheduledExecutorSvc.shutdownNow(); } ZpeUpdPolLoader(String dirName); Map<String, List<Struct>> getWildcardRoleAllowMap(String domainName); Map<String, List<Struct>> getStandardRoleAllowMap(String domainName); Map<String, List<Struct>> getWildcardRoleDenyMap(String domainName); Map<String, List<Struct>> getStandardRoleDenyMap(String domainName); static Map<String, RoleToken> getRoleTokenCacheMap(); static Map<String, AccessToken> getAccessTokenCacheMap(); void start(); @Override void close(); static void cleanupRoleTokenCache(); static void cleanupAccessTokenCache();  }
@Test public void testLoadFileStatusNull() { ZpeUpdPolLoader loader = new ZpeUpdPolLoader("./noexist"); ZpeUpdMonitor monitor = new ZpeUpdMonitor(loader); File[] files = monitor.loadFileStatus(); assertNull(files); loader.close(); }