StructuralObjectClassVirtualAttributeProviderTestCase.java revision 9aa1482c49865483f798f91ef7d16f03cc3ec811
0N/A * The contents of this file are subject to the terms of the 0N/A * Common Development and Distribution License, Version 1.0 only 0N/A * (the "License"). You may not use this file except in compliance 0N/A * See the License for the specific language governing permissions 0N/A * and limitations under the License. 0N/A * When distributing Covered Code, include this CDDL HEADER in each 0N/A * If applicable, add the following below this CDDL HEADER, with the 0N/A * fields enclosed by brackets "[]" replaced with your own identifying 1472N/A * Portions Copyright [yyyy] [name of copyright owner] 0N/A * Copyright 2009 Sun Microsystems, Inc. 0N/A * Portions Copyright 2011-2015 ForgeRock AS 0N/A * A set of test cases for the structural object class virtual attribute 0N/A /** The attribute type for the structuralobjectclass attribute. */ * Ensures that the Directory Server is running. * @throws Exception If an unexpected problem occurs. * Retrieves a set of entry DNs for use in testing the * structuralObjectClassType virtual attribute. * @return A set of entry DNs for use in testing the structuralobjectclass * @throws Exception If an unexpected problem occurs. * Retrieves a set of entry DNs and corresponding structural object classes * for use in testing the structuralObjectClassType virtual attribute. * @return A set of entry DNs and oc for use in testing the * structuralobjectclass virtual attribute. * @throws Exception If an unexpected problem occurs. {
DN.
valueOf(
"o=test"),
"structuralObjectClass=organization"},
{
DN.
valueOf(
"dc=example,dc=com"),
"structuralObjectClass=domain"},
* Tests the {@code getEntry} method for the specified entry to ensure that * the entry returned includes the structuralObjectClass operational * attribute with the correct value. * @param entryDN The DN of the entry to retrieve and verify. * @throws Exception If an unexpected problem occurs. * Performs an internal search to retrieve the specified entry, ensuring that * the structuralObjectClass attribute is not included when the list of attributes * requested is empty (defaulting to all user attributes). * @param entryDN The DN of the entry to retrieve and verify. * @throws Exception If an unexpected problem occurs. * Performs an internal search to retrieve the specified entry, ensuring that * the structuralObjectClass attribute is not included when the list of requested * attributes is "1.1", meaning no attributes. * @param entryDN The DN of the entry to retrieve and verify. * @throws Exception If an unexpected problem occurs. * Performs an internal search to retrieve the specified entry, ensuring that * the structuralObjectClass attribute is not included when all user attributes * @param entryDN The DN of the entry to retrieve and verify. * @throws Exception If an unexpected problem occurs. * Performs an internal search to retrieve the specified entry, ensuring that * the structuralObjectClass attribute is included when all operational attributes * @param entryDN The DN of the entry to retrieve and verify. * @throws Exception If an unexpected problem occurs. * Performs an internal search to retrieve the specified entry, ensuring that * the structuralObjectClass attribute is included when that attribute is * specifically requested. * @param entryDN The DN of the entry to retrieve and verify. * @throws Exception If an unexpected problem occurs. * Performs an internal search to retrieve the specified entry, ensuring that * the structuralObjectClass attribute is not included when it is not in the list * of attributes that is explicitly requested. * @param entryDN The DN of the entry to retrieve and verify. * @throws Exception If an unexpected problem occurs. * Performs an internal search to retrieve the specified entry, ensuring that * the structuralObjectClass attribute is included when that attribute is * specifically requested and the structuralObjectClass attribute is used in the * search filter with a matching value. * @param entryDN The DN of the entry to retrieve and verify. * @throws Exception If an unexpected problem occurs. * Performs an internal search to retrieve the specified entry, ensuring that * no entries are returned when the structuralObjectClass attribute is used in the * search filter with a non-matching value. * @param entryDN The DN of the entry to retrieve and verify. * @throws Exception If an unexpected problem occurs. * Performs an internal search to retrieve the specified entry, ensuring that * the structuralObjectClass attribute is not included when that attribute is * specifically requested and the real attributes only control is included in * @param entryDN The DN of the entry to retrieve and verify. * @throws Exception If an unexpected problem occurs. * Performs an internal search to retrieve the specified entry, ensuring that * the structuralObjectClass attribute is included when that attribute is * specifically requested and the virtual attributes only control is included * @param entryDN The DN of the entry to retrieve and verify. * @throws Exception If an unexpected problem occurs. * Tests the {@code isMultiValued} method. * Tests the {@code getValues} method for an entry. * @throws Exception If an unexpected problem occurs. "objectClass: organization",
* Tests the {@code hasValue} method variant that doesn't take a specific * @throws Exception If an unexpected problem occurs. "objectClass: organization",
* Tests the {@code hasValue} method variant that takes a specific value when * the provided value is a match. * @throws Exception If an unexpected problem occurs. "objectClass: organization",
* Tests the {@code hasValue} method variant that takes a specific value when * the provided value is not a match. * @throws Exception If an unexpected problem occurs. "objectClass: organization",