244N/A * The contents of this file are subject to the terms of the 244N/A * Common Development and Distribution License, Version 1.0 only 244N/A * (the "License"). You may not use this file except in compliance 244N/A * You can obtain a copy of the license at 244N/A * See the License for the specific language governing permissions 244N/A * and limitations under the License. 244N/A * When distributing Covered Code, include this CDDL HEADER in each 244N/A * file and include the License file at 244N/A * add the following below this CDDL HEADER, with the fields enclosed 873N/A * by brackets "[]" replaced with your own identifying information: 244N/A * Portions Copyright [yyyy] [name of copyright owner] 3232N/A * Copyright 2006-2008 Sun Microsystems, Inc. 244N/A * This class defines a set of tests for the 244N/A * org.opends.server.protocol.ldap.DeleteResponseProtocolOp class. 244N/A * The protocol op type for delete response. 244N/A * The protocol op type for delete responses. 244N/A * The result code for delete result operations. 244N/A * The error message to use for delete result operations. 244N/A * The DN to use for delete result operations 244N/A //Setup the DN to use in the response tests. 244N/A * Test to make sure the class processes the right LDAP op type. 244N/A * @throws Exception If the test failed unexpectedly. 244N/A * Test to make sure the class returns the correct protocol name. 244N/A * @throws Exception If the test failed unexpectedly. 244N/A * Test the constructors to make sure the right objects are constructed. 244N/A * @throws Exception If the test failed unexpectedly. 244N/A //Test to make sure the constructor with result code param works. 244N/A //Test to make sure the constructor with result code and error message 244N/A //Test to make sure the constructor with result code, message, dn, and 244N/A //referal params works. 244N/A * Test the decode method when an empty element is passed 244N/A * @throws Exception If the test failed unexpectedly. 244N/A * Test the decode method when an element with a invalid result code is 244N/A * @throws Exception If the test failed unexpectedly. 244N/A * Test the decode method when an element with a invalid dn is 244N/A * passed. Never throws an exception as long as the element is not null. 244N/A * This is the expected behavior. 244N/A * @throws Exception If the test failed unexpectedly. 244N/A * Test the decode method when an element with a invalid result message is 244N/A * passed. Never throws an exception as long as the element is not null. 244N/A * This is the expected behavior. 244N/A * @throws Exception If the test failed unexpectedly. 244N/A * Test the decode method when an element with a invalid referral URL is 244N/A * passed. Never throws an exception as long as the element is not null. 244N/A * This is the expected behavior. 244N/A * @throws Exception If the test failed unexpectedly. 244N/A * Test the encode and decode methods and corner cases. 244N/A * @throws Exception If the test failed unexpectedly. 244N/A //Test case for a full encode decode operation with normal params. 244N/A //Test case for a full encode decode operation with an empty DN params. 244N/A //Test case for a full empty referral url param. 244N/A //Test case for a full encode decode operation with resultCode param only. 244N/A * Test the toString (single line) method. 244N/A * @throws Exception If the test fails unexpectedly. 244N/A * Test the toString (multi line) method. 244N/A * @throws Exception If the test fails unexpectedly.