| | |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.protocols.internal.InternalSearchOperation; |
| | | import org.opends.server.protocols.internal.SearchRequest; |
| | | import org.opends.server.protocols.ldap.LDAPControl; |
| | | import org.opends.server.protocols.ldap.LDAPResultCode; |
| | | import org.forgerock.opendj.ldap.schema.AttributeType; |
| | | import org.opends.server.types.*; |
| | | import org.opends.server.types.Control; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.SearchResultEntry; |
| | | import org.testng.annotations.BeforeClass; |
| | | import org.testng.annotations.Test; |
| | | |
| | |
| | | public class VLVControlTestCase |
| | | extends ControlsTestCase |
| | | { |
| | | /** The givenName attribute type. */ |
| | | private AttributeType givenNameType; |
| | | /** The sn attribute type. */ |
| | | private AttributeType snType; |
| | | |
| | | /** The DN for "Aaccf Johnson". */ |
| | | private DN aaccfJohnsonDN; |
| | | /** The DN for "Aaron Zimmerman". */ |
| | |
| | | { |
| | | TestCaseUtils.startServer(); |
| | | |
| | | givenNameType = DirectoryServer.getAttributeType("givenname"); |
| | | assertNotNull(givenNameType); |
| | | |
| | | snType = DirectoryServer.getAttributeType("sn"); |
| | | assertNotNull(snType); |
| | | |
| | | aaccfJohnsonDN = DN.valueOf("uid=aaccf.johnson,dc=example,dc=com"); |
| | | aaronZimmermanDN = DN.valueOf("uid=aaron.zimmerman,dc=example,dc=com"); |
| | | albertSmithDN = DN.valueOf("uid=albert.smith,dc=example,dc=com"); |