@Test public void userForReturnsAnOptionalWithAUserForAKnownUser() throws AuthenticationUnavailableException { Optional<User> knownUser = instance.userFor("pidOfKnownUser"); assertThat(knownUser, is(present())); }
@Override public Optional<User> userFor(String pid) throws AuthenticationUnavailableException { return userAccess.getUserForPid(pid); }
JsonBasedUserStore implements UserStore, UserCreator { @Override public Optional<User> userFor(String pid) throws AuthenticationUnavailableException { return userAccess.getUserForPid(pid); } }
JsonBasedUserStore implements UserStore, UserCreator { @Override public Optional<User> userFor(String pid) throws AuthenticationUnavailableException { return userAccess.getUserForPid(pid); } JsonBasedUserStore(UserAccess userAccess); }
JsonBasedUserStore implements UserStore, UserCreator { @Override public Optional<User> userFor(String pid) throws AuthenticationUnavailableException { return userAccess.getUserForPid(pid); } JsonBasedUserStore(UserAccess userAccess); @Override Optional<User> userFor(String pid); @Override Optional<User> userForId(String userId); @Override User saveNew(String displayName, String persistentId); @Override User createUser(String pid, String email, String givenName, String surname, String organization); }
JsonBasedUserStore implements UserStore, UserCreator { @Override public Optional<User> userFor(String pid) throws AuthenticationUnavailableException { return userAccess.getUserForPid(pid); } JsonBasedUserStore(UserAccess userAccess); @Override Optional<User> userFor(String pid); @Override Optional<User> userForId(String userId); @Override User saveNew(String displayName, String persistentId); @Override User createUser(String pid, String email, String givenName, String surname, String organization); static final Logger LOG; }