@Test public void loadUser() throws IOException { when(userStore.getUserByOpenId("openId")).thenReturn(user); User result = userDetailsService.loadUser("openId"); assertEquals(user, result); }
@Override User loadUser(String openId) throws IOException { try { return getUserStore().getUserByOpenId(openId); } catch (OpenIdNotFoundException e) { throw new UsernameNotFoundException("unknown OpenID: " + openId, e); } }
OpenIdUserDetailsService extends AbstractUserDetailsService { @Override User loadUser(String openId) throws IOException { try { return getUserStore().getUserByOpenId(openId); } catch (OpenIdNotFoundException e) { throw new UsernameNotFoundException("unknown OpenID: " + openId, e); } } }
OpenIdUserDetailsService extends AbstractUserDetailsService { @Override User loadUser(String openId) throws IOException { try { return getUserStore().getUserByOpenId(openId); } catch (OpenIdNotFoundException e) { throw new UsernameNotFoundException("unknown OpenID: " + openId, e); } }  }
OpenIdUserDetailsService extends AbstractUserDetailsService { @Override User loadUser(String openId) throws IOException { try { return getUserStore().getUserByOpenId(openId); } catch (OpenIdNotFoundException e) { throw new UsernameNotFoundException("unknown OpenID: " + openId, e); } }   }
OpenIdUserDetailsService extends AbstractUserDetailsService { @Override User loadUser(String openId) throws IOException { try { return getUserStore().getUserByOpenId(openId); } catch (OpenIdNotFoundException e) { throw new UsernameNotFoundException("unknown OpenID: " + openId, e); } }    }