@Test public void testChancePassword() throws Exception { user.changePassword("newPw"); verify(dlg, times(1)).changePassword("newPw"); verify(autosaveMgr, times(1)).autosave(); }
@Override public void changePassword(@Nullable String pw) throws RepositoryException { try { getDelegate().changePassword(pw); } finally { getMgr().autosave(); } }
UserImpl extends AuthorizableImpl implements User { @Override public void changePassword(@Nullable String pw) throws RepositoryException { try { getDelegate().changePassword(pw); } finally { getMgr().autosave(); } } }
UserImpl extends AuthorizableImpl implements User { @Override public void changePassword(@Nullable String pw) throws RepositoryException { try { getDelegate().changePassword(pw); } finally { getMgr().autosave(); } } UserImpl(User dlg, AutoSaveEnabledManager mgr); }
UserImpl extends AuthorizableImpl implements User { @Override public void changePassword(@Nullable String pw) throws RepositoryException { try { getDelegate().changePassword(pw); } finally { getMgr().autosave(); } } UserImpl(User dlg, AutoSaveEnabledManager mgr); @Override boolean isAdmin(); @Override boolean isSystemUser(); @NotNull @Override Credentials getCredentials(); @NotNull @Override Impersonation getImpersonation(); @Override void changePassword(@Nullable String pw); @Override void changePassword(@Nullable String pw, @NotNull String oldPw); @Override void disable(@Nullable String msg); @Override boolean isDisabled(); @Nullable @Override String getDisabledReason(); }
UserImpl extends AuthorizableImpl implements User { @Override public void changePassword(@Nullable String pw) throws RepositoryException { try { getDelegate().changePassword(pw); } finally { getMgr().autosave(); } } UserImpl(User dlg, AutoSaveEnabledManager mgr); @Override boolean isAdmin(); @Override boolean isSystemUser(); @NotNull @Override Credentials getCredentials(); @NotNull @Override Impersonation getImpersonation(); @Override void changePassword(@Nullable String pw); @Override void changePassword(@Nullable String pw, @NotNull String oldPw); @Override void disable(@Nullable String msg); @Override boolean isDisabled(); @Nullable @Override String getDisabledReason();  }