@Test public void loadUserByInternalCrnWithAutoscale() { InternalCrnBuilder crnBuilder = new InternalCrnBuilder(Crn.Service.AUTOSCALE); UserDetails userDetails = underTest.loadUserByUsername(crnBuilder.getInternalCrnForServiceAsString()); assertTrue(userDetails.getAuthorities().iterator().next().getAuthority().equals("ROLE_AUTOSCALE")); }
@Override public CrnUser loadUserByUsername(String crn) throws UsernameNotFoundException { return getUmsUser(crn); }
CrnUserDetailsService implements UserDetailsService { @Override public CrnUser loadUserByUsername(String crn) throws UsernameNotFoundException { return getUmsUser(crn); } }
CrnUserDetailsService implements UserDetailsService { @Override public CrnUser loadUserByUsername(String crn) throws UsernameNotFoundException { return getUmsUser(crn); } CrnUserDetailsService(GrpcUmsClient umsClient); }
CrnUserDetailsService implements UserDetailsService { @Override public CrnUser loadUserByUsername(String crn) throws UsernameNotFoundException { return getUmsUser(crn); } CrnUserDetailsService(GrpcUmsClient umsClient); @Override CrnUser loadUserByUsername(String crn); }
CrnUserDetailsService implements UserDetailsService { @Override public CrnUser loadUserByUsername(String crn) throws UsernameNotFoundException { return getUmsUser(crn); } CrnUserDetailsService(GrpcUmsClient umsClient); @Override CrnUser loadUserByUsername(String crn);  }