@Test public void testGetUsername() { context.checking(new Expectations() { { oneOf(person).getAccountId(); will(returnValue("acctid")); } }); ExtendedUserDetailsImpl sut = new ExtendedUserDetailsImpl(person, null, null, null); String foo = sut.getUsername(); assertEquals("Username not equal to Person object's username", "acctid", foo); context.assertIsSatisfied(); }
public String getUsername() { return person.getAccountId(); }
ExtendedUserDetailsImpl implements ExtendedUserDetails { public String getUsername() { return person.getAccountId(); } }
ExtendedUserDetailsImpl implements ExtendedUserDetails { public String getUsername() { return person.getAccountId(); } ExtendedUserDetailsImpl(final Person inPerson, final PersistentLogin inLogin,
            final GrantedAuthority[] inGrantedAuthorities, final AuthenticationType inAuthenticationType); }
ExtendedUserDetailsImpl implements ExtendedUserDetails { public String getUsername() { return person.getAccountId(); } 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 String getUsername() { return person.getAccountId(); } 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();  }