@Test() public void loadByUsername_nullUser() { Mockito.when(userInfoRepository.getByUsername(adminUsername)).thenReturn(null); UserInfo user = service.getByUsername(adminUsername); assertNull(user); }
@Override public UserInfo getByUsername(String username) { return userInfoRepository.getByUsername(username); }
DefaultUserInfoService implements UserInfoService { @Override public UserInfo getByUsername(String username) { return userInfoRepository.getByUsername(username); } }
DefaultUserInfoService implements UserInfoService { @Override public UserInfo getByUsername(String username) { return userInfoRepository.getByUsername(username); }  }
DefaultUserInfoService implements UserInfoService { @Override public UserInfo getByUsername(String username) { return userInfoRepository.getByUsername(username); }  @Override void save(UserInfo userInfo); @Override UserInfo getBySubject(String userId); @Override void remove(UserInfo userInfo); @Override UserInfo getByUsername(String username); @Override UserInfo getByUsernameAndClientId(String username, String clientId); }
DefaultUserInfoService implements UserInfoService { @Override public UserInfo getByUsername(String username) { return userInfoRepository.getByUsername(username); }  @Override void save(UserInfo userInfo); @Override UserInfo getBySubject(String userId); @Override void remove(UserInfo userInfo); @Override UserInfo getByUsername(String username); @Override UserInfo getByUsernameAndClientId(String username, String clientId);  }