@Test public void testIsAdmin() throws Exception { assertEquals(dlg.isAdmin(), user.isAdmin()); verify(dlg, times(2)).isAdmin(); verify(autosaveMgr, never()).autosave(); }
@Override public boolean isAdmin() { return getDelegate().isAdmin(); }
UserImpl extends AuthorizableImpl implements User { @Override public boolean isAdmin() { return getDelegate().isAdmin(); } }
UserImpl extends AuthorizableImpl implements User { @Override public boolean isAdmin() { return getDelegate().isAdmin(); } UserImpl(User dlg, AutoSaveEnabledManager mgr); }
UserImpl extends AuthorizableImpl implements User { @Override public boolean isAdmin() { return getDelegate().isAdmin(); } 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 boolean isAdmin() { return getDelegate().isAdmin(); } 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();  }