Fix unit tests broken in commit r9044.
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions copyright 2011 ForgeRock AS. |
| | | * Portions copyright 2011-2013 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | conn.processAdd(entry.getDN(), entry.getObjectClasses(), |
| | | entry.getUserAttributes(), |
| | | entry.getOperationalAttributes()); |
| | | assertFalse(addOperation.getResultCode() == ResultCode.SUCCESS); |
| | | assertEquals(addOperation.getResultCode(), ResultCode.BUSY); |
| | | } |
| | | finally |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions copyright 2011 ForgeRock AS. |
| | | * Portions copyright 2011-2013 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.opends.server.core; |
| | |
| | | CompareResponseProtocolOp compareResponse = |
| | | message.getCompareResponseProtocolOp(); |
| | | |
| | | assertEquals(compareResponse.getResultCode(), |
| | | DirectoryServer.getServerErrorResultCode().getIntValue()); |
| | | assertEquals(compareResponse.getResultCode(), ResultCode.BUSY); |
| | | |
| | | // assertEquals(InvocationCounterPlugin.getPreParseCount(), 1); |
| | | // assertEquals(InvocationCounterPlugin.getPreOperationCount(), 0); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions copyright 2011 ForgeRock AS. |
| | | * Portions copyright 2011-2013 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | |
| | | DeleteOperation deleteOperation = |
| | | conn.processDelete(ByteString.valueOf("o=test")); |
| | | assertFalse(deleteOperation.getResultCode() == ResultCode.SUCCESS); |
| | | assertEquals(deleteOperation.getResultCode(), ResultCode.BUSY); |
| | | } |
| | | finally |
| | | { |
| | |
| | | |
| | | ModifyOperation modifyOperation = |
| | | conn.processModify(ByteString.valueOf(baseDN), mods); |
| | | assertFalse(modifyOperation.getResultCode() == ResultCode.SUCCESS); |
| | | assertEquals(modifyOperation.getResultCode(), ResultCode.BUSY); |
| | | } |
| | | finally |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions copyright 2011 ForgeRock AS. |
| | | * Portions copyright 2011-2013 ForgeRock AS. |
| | | * Portions copyright 2013 Manuel Gaupp |
| | | */ |
| | | package org.opends.server.core; |
| | |
| | | ModifyDNResponseProtocolOp modifyResponse = |
| | | message.getModifyDNResponseProtocolOp(); |
| | | |
| | | assertEquals(modifyResponse.getResultCode(), |
| | | DirectoryServer.getServerErrorResultCode().getIntValue()); |
| | | assertEquals(modifyResponse.getResultCode(), ResultCode.BUSY); |
| | | |
| | | // assertEquals(InvocationCounterPlugin.getPreParseCount(), 1); |
| | | // assertEquals(InvocationCounterPlugin.getPreOperationCount(), 0); |