| | |
| | | |
| | | import static org.fest.assertions.Assertions.assertThat; |
| | | import static org.forgerock.opendj.ldap.Connections.newInternalConnection; |
| | | import static org.forgerock.opendj.ldap.LdapException.*; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.Collections; |
| | |
| | | Connection c = new AbstractConnectionWrapper<Connection>(newInternalConnection(backend)) { |
| | | @Override |
| | | public Result add(Entry entry) throws LdapException { |
| | | throw LdapException.newErrorResult(resultCodeOfThrownException); |
| | | throw newLdapException(resultCodeOfThrownException); |
| | | } |
| | | }; |
| | | ManagementContext ctx = |
| | |
| | | Connection c = new AbstractConnectionWrapper<Connection>(newInternalConnection(backend)) { |
| | | @Override |
| | | public SearchResultEntry readEntry(DN name, String... attributeDescriptions) throws LdapException { |
| | | throw LdapException.newErrorResult(resultCodeOfThrownException); |
| | | throw newLdapException(resultCodeOfThrownException); |
| | | } |
| | | }; |
| | | ManagementContext ctx = |