ZpeUpdPolLoader implements Closeable { String getDirName() { return polDirName; } 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 testUpdLoaderInvalid() { ZpeUpdPolLoader loaderMock = Mockito.mock(ZpeUpdPolLoader.class); Mockito.when(loaderMock.getDirName()).thenReturn(null); ZpeUpdMonitor monitor = new ZpeUpdMonitor(loaderMock); monitor.run(); monitor.cancel(); monitor.run(); }