@Test public void testGetPrivilege() throws Exception { PrivilegeManager delegate = mock(PrivilegeManager.class); PrivilegeManagerFacade facade = getFacade(delegate); final String name = "name"; final Privilege value = mock(Privilege.class); when(delegate.getPrivilege(name)).thenReturn(value); assertSame("is same value", value, facade.getPrivilege(name)); }
@Override public Privilege getPrivilege(final String privilegeName) throws RepositoryException { return delegate.getPrivilege(privilegeName); }
PrivilegeManagerFacade implements PrivilegeManager { @Override public Privilege getPrivilege(final String privilegeName) throws RepositoryException { return delegate.getPrivilege(privilegeName); } }
PrivilegeManagerFacade implements PrivilegeManager { @Override public Privilege getPrivilege(final String privilegeName) throws RepositoryException { return delegate.getPrivilege(privilegeName); } PrivilegeManagerFacade(final @NotNull PrivilegeManager delegate); }
PrivilegeManagerFacade implements PrivilegeManager { @Override public Privilege getPrivilege(final String privilegeName) throws RepositoryException { return delegate.getPrivilege(privilegeName); } PrivilegeManagerFacade(final @NotNull PrivilegeManager delegate); @Override Privilege[] getRegisteredPrivileges(); @Override Privilege getPrivilege(final String privilegeName); @Override Privilege registerPrivilege(final String privilegeName,
                                       final boolean isAbstract,
                                       final String[] declaredAggregateNames); }
PrivilegeManagerFacade implements PrivilegeManager { @Override public Privilege getPrivilege(final String privilegeName) throws RepositoryException { return delegate.getPrivilege(privilegeName); } PrivilegeManagerFacade(final @NotNull PrivilegeManager delegate); @Override Privilege[] getRegisteredPrivileges(); @Override Privilege getPrivilege(final String privilegeName); @Override Privilege registerPrivilege(final String privilegeName,
                                       final boolean isAbstract,
                                       final String[] declaredAggregateNames);  }