@Test(expected = ListenerReadOnlyException.class) public void testROGrantImpersonation() throws Exception { Impersonation delegate = mock(Impersonation.class); ImpersonationFacade facade = getFacade(delegate); facade.grantImpersonation(null); }
@Override public boolean grantImpersonation(final Principal principal) throws RepositoryException { throw new ListenerReadOnlyException(); }
ImpersonationFacade implements Impersonation { @Override public boolean grantImpersonation(final Principal principal) throws RepositoryException { throw new ListenerReadOnlyException(); } }
ImpersonationFacade implements Impersonation { @Override public boolean grantImpersonation(final Principal principal) throws RepositoryException { throw new ListenerReadOnlyException(); } @SuppressWarnings("WeakerAccess")  ImpersonationFacade(final @NotNull Impersonation delegate); }
ImpersonationFacade implements Impersonation { @Override public boolean grantImpersonation(final Principal principal) throws RepositoryException { throw new ListenerReadOnlyException(); } @SuppressWarnings("WeakerAccess")  ImpersonationFacade(final @NotNull Impersonation delegate); @Override PrincipalIterator getImpersonators(); @Override boolean allows(final Subject subject); @Override boolean grantImpersonation(final Principal principal); @Override boolean revokeImpersonation(final Principal principal); }
ImpersonationFacade implements Impersonation { @Override public boolean grantImpersonation(final Principal principal) throws RepositoryException { throw new ListenerReadOnlyException(); } @SuppressWarnings("WeakerAccess")  ImpersonationFacade(final @NotNull Impersonation delegate); @Override PrincipalIterator getImpersonators(); @Override boolean allows(final Subject subject); @Override boolean grantImpersonation(final Principal principal); @Override boolean revokeImpersonation(final Principal principal);  }