@Test public void testIsAccountNonLockedNo() { context.checking(new Expectations() { { oneOf(person).isAccountLocked(); will(returnValue(true)); } }); ExtendedUserDetailsImpl sut = new ExtendedUserDetailsImpl(person, null, null, null); assertFalse(sut.isAccountNonLocked()); }
public boolean isAccountNonLocked() { return !person.isAccountLocked(); }
ExtendedUserDetailsImpl implements ExtendedUserDetails { public boolean isAccountNonLocked() { return !person.isAccountLocked(); } }
ExtendedUserDetailsImpl implements ExtendedUserDetails { public boolean isAccountNonLocked() { return !person.isAccountLocked(); } ExtendedUserDetailsImpl(final Person inPerson, final PersistentLogin inLogin,
            final GrantedAuthority[] inGrantedAuthorities, final AuthenticationType inAuthenticationType); }
ExtendedUserDetailsImpl implements ExtendedUserDetails { public boolean isAccountNonLocked() { return !person.isAccountLocked(); } 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 boolean isAccountNonLocked() { return !person.isAccountLocked(); } 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();  }