@Test void testFromIpaUser() { com.sequenceiq.freeipa.client.model.User ipaUser = createIpaUser("uid", List.of("group1", "group2")); FmsUser fmsUser = underTest.fromIpaUser(ipaUser); assertEquals(fmsUser.getName(), ipaUser.getUid()); assertEquals(fmsUser.getLastName(), ipaUser.getSn()); assertEquals(fmsUser.getFirstName(), ipaUser.getGivenname()); }
@VisibleForTesting FmsUser fromIpaUser(com.sequenceiq.freeipa.client.model.User ipaUser) { return new FmsUser() .withName(ipaUser.getUid()) .withFirstName(ipaUser.getGivenname()) .withLastName(ipaUser.getSn()); }
FreeIpaUsersStateProvider { @VisibleForTesting FmsUser fromIpaUser(com.sequenceiq.freeipa.client.model.User ipaUser) { return new FmsUser() .withName(ipaUser.getUid()) .withFirstName(ipaUser.getGivenname()) .withLastName(ipaUser.getSn()); } }
FreeIpaUsersStateProvider { @VisibleForTesting FmsUser fromIpaUser(com.sequenceiq.freeipa.client.model.User ipaUser) { return new FmsUser() .withName(ipaUser.getUid()) .withFirstName(ipaUser.getGivenname()) .withLastName(ipaUser.getSn()); }  }
FreeIpaUsersStateProvider { @VisibleForTesting FmsUser fromIpaUser(com.sequenceiq.freeipa.client.model.User ipaUser) { return new FmsUser() .withName(ipaUser.getUid()) .withFirstName(ipaUser.getGivenname()) .withLastName(ipaUser.getSn()); }  UsersState getUsersState(FreeIpaClient freeIpaClient); UsersState getFilteredFreeIpaState(FreeIpaClient freeIpaClient, Set<String> userNames); }
FreeIpaUsersStateProvider { @VisibleForTesting FmsUser fromIpaUser(com.sequenceiq.freeipa.client.model.User ipaUser) { return new FmsUser() .withName(ipaUser.getUid()) .withFirstName(ipaUser.getGivenname()) .withLastName(ipaUser.getSn()); }  UsersState getUsersState(FreeIpaClient freeIpaClient); UsersState getFilteredFreeIpaState(FreeIpaClient freeIpaClient, Set<String> userNames);  }