@Test public void testAllCleanupStep() { for (CleanupStep cleanupStep : CleanupStep.values()) { String stateName = underTest.convert(cleanupStep); FreeIpaCleanupState.valueOf(stateName); } }
public String convert(CleanupStep cleanupStep) { switch (cleanupStep) { case REMOVE_HOSTS: return REMOVE_HOSTS_STATE.name(); case REMOVE_ROLES: return REMOVE_ROLES_STATE.name(); case REMOVE_USERS: return REMOVE_USERS_STATE.name(); case REMOVE_DNS_ENTRIES: return REMOVE_DNS_ENTRIES_STATE.name(); case REVOKE_CERTS: return REVOKE_CERTS_STATE.name(); case REMOVE_VAULT_ENTRIES: return REMOVE_VAULT_ENTRIES_STATE.name(); default: return ""; } }
CleanupStepToStateNameConverter { public String convert(CleanupStep cleanupStep) { switch (cleanupStep) { case REMOVE_HOSTS: return REMOVE_HOSTS_STATE.name(); case REMOVE_ROLES: return REMOVE_ROLES_STATE.name(); case REMOVE_USERS: return REMOVE_USERS_STATE.name(); case REMOVE_DNS_ENTRIES: return REMOVE_DNS_ENTRIES_STATE.name(); case REVOKE_CERTS: return REVOKE_CERTS_STATE.name(); case REMOVE_VAULT_ENTRIES: return REMOVE_VAULT_ENTRIES_STATE.name(); default: return ""; } } }
CleanupStepToStateNameConverter { public String convert(CleanupStep cleanupStep) { switch (cleanupStep) { case REMOVE_HOSTS: return REMOVE_HOSTS_STATE.name(); case REMOVE_ROLES: return REMOVE_ROLES_STATE.name(); case REMOVE_USERS: return REMOVE_USERS_STATE.name(); case REMOVE_DNS_ENTRIES: return REMOVE_DNS_ENTRIES_STATE.name(); case REVOKE_CERTS: return REVOKE_CERTS_STATE.name(); case REMOVE_VAULT_ENTRIES: return REMOVE_VAULT_ENTRIES_STATE.name(); default: return ""; } }  }
CleanupStepToStateNameConverter { public String convert(CleanupStep cleanupStep) { switch (cleanupStep) { case REMOVE_HOSTS: return REMOVE_HOSTS_STATE.name(); case REMOVE_ROLES: return REMOVE_ROLES_STATE.name(); case REMOVE_USERS: return REMOVE_USERS_STATE.name(); case REMOVE_DNS_ENTRIES: return REMOVE_DNS_ENTRIES_STATE.name(); case REVOKE_CERTS: return REVOKE_CERTS_STATE.name(); case REMOVE_VAULT_ENTRIES: return REMOVE_VAULT_ENTRIES_STATE.name(); default: return ""; } }  String convert(CleanupStep cleanupStep); Set<String> convert(Collection<CleanupStep> cleanupSteps); }
CleanupStepToStateNameConverter { public String convert(CleanupStep cleanupStep) { switch (cleanupStep) { case REMOVE_HOSTS: return REMOVE_HOSTS_STATE.name(); case REMOVE_ROLES: return REMOVE_ROLES_STATE.name(); case REMOVE_USERS: return REMOVE_USERS_STATE.name(); case REMOVE_DNS_ENTRIES: return REMOVE_DNS_ENTRIES_STATE.name(); case REVOKE_CERTS: return REVOKE_CERTS_STATE.name(); case REMOVE_VAULT_ENTRIES: return REMOVE_VAULT_ENTRIES_STATE.name(); default: return ""; } }  String convert(CleanupStep cleanupStep); Set<String> convert(Collection<CleanupStep> cleanupSteps);  }