@Test public void testGrantImpersonation() throws Exception { Principal principal = new PrincipalImpl("any"); user.getImpersonation().grantImpersonation(principal); verify(impersonationMock, times(1)).grantImpersonation(principal); verify(autosaveMgr, times(1)).autosave(); }
@NotNull @Override public Impersonation getImpersonation() throws RepositoryException { return new ImpersonationImpl(getDelegate().getImpersonation()); }
UserImpl extends AuthorizableImpl implements User { @NotNull @Override public Impersonation getImpersonation() throws RepositoryException { return new ImpersonationImpl(getDelegate().getImpersonation()); } }
UserImpl extends AuthorizableImpl implements User { @NotNull @Override public Impersonation getImpersonation() throws RepositoryException { return new ImpersonationImpl(getDelegate().getImpersonation()); } UserImpl(User dlg, AutoSaveEnabledManager mgr); }
UserImpl extends AuthorizableImpl implements User { @NotNull @Override public Impersonation getImpersonation() throws RepositoryException { return new ImpersonationImpl(getDelegate().getImpersonation()); } 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 { @NotNull @Override public Impersonation getImpersonation() throws RepositoryException { return new ImpersonationImpl(getDelegate().getImpersonation()); } 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();  }