@Test void checkGroupNotProtectedPasses() throws FreeIpaClientException { String errMessage = "group protected"; FreeIpaChecks.checkGroupNotProtected("superheroes", () -> errMessage); }
public static void checkGroupNotProtected(String group, Supplier<String> errorMessage) throws FreeIpaClientException { if (IPA_PROTECTED_GROUPS.contains(group)) { throw new FreeIpaClientException(errorMessage.get()); } }
FreeIpaChecks { public static void checkGroupNotProtected(String group, Supplier<String> errorMessage) throws FreeIpaClientException { if (IPA_PROTECTED_GROUPS.contains(group)) { throw new FreeIpaClientException(errorMessage.get()); } } }
FreeIpaChecks { public static void checkGroupNotProtected(String group, Supplier<String> errorMessage) throws FreeIpaClientException { if (IPA_PROTECTED_GROUPS.contains(group)) { throw new FreeIpaClientException(errorMessage.get()); } } private  FreeIpaChecks(); }
FreeIpaChecks { public static void checkGroupNotProtected(String group, Supplier<String> errorMessage) throws FreeIpaClientException { if (IPA_PROTECTED_GROUPS.contains(group)) { throw new FreeIpaClientException(errorMessage.get()); } } private  FreeIpaChecks(); static void checkUserNotProtected(String user, Supplier<String> errorMessage); static void checkGroupNotProtected(String group, Supplier<String> errorMessage); static void checkGroupNotUnmanaged(String group, Supplier<String> errorMessage); }
FreeIpaChecks { public static void checkGroupNotProtected(String group, Supplier<String> errorMessage) throws FreeIpaClientException { if (IPA_PROTECTED_GROUPS.contains(group)) { throw new FreeIpaClientException(errorMessage.get()); } } private  FreeIpaChecks(); static void checkUserNotProtected(String user, Supplier<String> errorMessage); static void checkGroupNotProtected(String group, Supplier<String> errorMessage); static void checkGroupNotUnmanaged(String group, Supplier<String> errorMessage); static final List<String> IPA_PROTECTED_USERS; static final List<String> IPA_PROTECTED_GROUPS; static final List<String> IPA_UNMANAGED_GROUPS; }