@Test public void testGetAuthoritiesNonNull() { GrantedAuthority[] auths = new GrantedAuthority[1]; GrantedAuthority gaMock = context.mock(GrantedAuthority.class); auths[0] = gaMock; ExtendedUserDetailsImpl sut = new ExtendedUserDetailsImpl(person, null, auths, null); assertEquals(1, sut.getAuthorities().length); assertEquals(gaMock, sut.getAuthorities()[0]); }
public GrantedAuthority[] getAuthorities() { return grantedAuthorities; }
ExtendedUserDetailsImpl implements ExtendedUserDetails { public GrantedAuthority[] getAuthorities() { return grantedAuthorities; } }
ExtendedUserDetailsImpl implements ExtendedUserDetails { public GrantedAuthority[] getAuthorities() { return grantedAuthorities; } ExtendedUserDetailsImpl(final Person inPerson, final PersistentLogin inLogin,
            final GrantedAuthority[] inGrantedAuthorities, final AuthenticationType inAuthenticationType); }
ExtendedUserDetailsImpl implements ExtendedUserDetails { public GrantedAuthority[] getAuthorities() { return grantedAuthorities; } ExtendedUserDetailsImpl(final Person inPerson, final PersistentLogin inLogin,
            final GrantedAuthority[] inGrantedAuthorities, final AuthenticationType inAuthenticationType); PersistentLogin getPersistentLogin(); Person getPerson(); GrantedAuthority[] getAuthorities(); String getPassword(); String getUsername(); boolean isAccountNonExpired(); boolean isAccountNonLocked(); boolean isCredentialsNonExpired(); boolean isEnabled(); @Override AuthenticationType getAuthenticationType(); }
ExtendedUserDetailsImpl implements ExtendedUserDetails { public GrantedAuthority[] getAuthorities() { return grantedAuthorities; } ExtendedUserDetailsImpl(final Person inPerson, final PersistentLogin inLogin,
            final GrantedAuthority[] inGrantedAuthorities, final AuthenticationType inAuthenticationType); PersistentLogin getPersistentLogin(); Person getPerson(); GrantedAuthority[] getAuthorities(); String getPassword(); String getUsername(); boolean isAccountNonExpired(); boolean isAccountNonLocked(); boolean isCredentialsNonExpired(); boolean isEnabled(); @Override AuthenticationType getAuthenticationType();  }