@Test public void testCreateDefaultAuthorities() { List<GrantedAuthority> authorityList = RoleDao.createDefaultAuthorities(); Assert.assertEquals("ROLE_USER", authorityList.get(0).getAuthority()); }
public static List<GrantedAuthority> createDefaultAuthorities() { Role r = createRoleWithReadPrivilage("ROLE_USER"); return singletonList(r); }
RoleDao { public static List<GrantedAuthority> createDefaultAuthorities() { Role r = createRoleWithReadPrivilage("ROLE_USER"); return singletonList(r); } }
RoleDao { public static List<GrantedAuthority> createDefaultAuthorities() { Role r = createRoleWithReadPrivilage("ROLE_USER"); return singletonList(r); }  }
RoleDao { public static List<GrantedAuthority> createDefaultAuthorities() { Role r = createRoleWithReadPrivilage("ROLE_USER"); return singletonList(r); }  @SuppressWarnings("unchecked") @PostConstruct void init(); List<GrantedAuthority> getRolesForUser(String user); Map<String, List<String>> getSimpleRolesMap(); @VisibleForTesting void setAuthPropsConfig(AuthPropsConfig authPropsConfig); static List<GrantedAuthority> createDefaultAuthorities(); }
RoleDao { public static List<GrantedAuthority> createDefaultAuthorities() { Role r = createRoleWithReadPrivilage("ROLE_USER"); return singletonList(r); }  @SuppressWarnings("unchecked") @PostConstruct void init(); List<GrantedAuthority> getRolesForUser(String user); Map<String, List<String>> getSimpleRolesMap(); @VisibleForTesting void setAuthPropsConfig(AuthPropsConfig authPropsConfig); static List<GrantedAuthority> createDefaultAuthorities();  }