TestSearchProtocolOp.java revision ea1068c292e9b341af6d6b563cd8988a96be20a9
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at legal-notices/CDDLv1_0.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2006-2009 Sun Microsystems, Inc.
* Portions Copyright 2014-2015 ForgeRock AS
*/
/**
* Test class for LDAP Search protocol operation classes.
*/
@SuppressWarnings("javadoc")
public class TestSearchProtocolOp extends LdapTestCase
{
private DereferenceAliasesPolicy dereferencePolicy =
private boolean typesOnly = true;
/**
* Create a test search request protocol op.
* @return A test search request protocol op.
* @throws LDAPException If the test object could not be created.
*/
throws LDAPException
{
return new SearchRequestProtocolOp(baseDN,
}
@Test
public void testSearchRequestToString() throws Exception
{
}
@Test
public void testSearchRequestEncodeDecode() throws Exception
{
// Construct a protocol op.
// Encode to ASN1.
// Decode to a new protocol op.
// Make sure the protocol op is the correct type.
// Check that the fields have not been changed during encode and decode.
// Check that the attributes are in the correct order (comparing the sets
// directly does not guarantee this).
}
public void testInvalidSearchRequestSequence() throws Exception
{
}
/**
* This should succeed since we are ignoring trailing SEQUENCE
* components.
*/
@Test
public void testInvalidSearchRequestTooManyElements() throws Exception
{
{
}
writer.writeBoolean(true);
// Make sure the protocol op is the correct type.
// Check that the fields have not been changed during encode and decode.
// Check that the attributes are in the correct order (comparing the sets
// directly does not guarantee this).
}
public void testInvalidSearchRequestTooFewElements() throws Exception
{
{
}
}
public void testInvalidSearchRequestScope() throws Exception
{
{
}
}
public void testInvalidSearchRequestDerefPolicy() throws Exception
{
{
}
}
public void testInvalidSearchRequestElement1() throws Exception
{
{
}
}
public void testInvalidSearchRequestElement2() throws Exception
{
{
}
}
public void testInvalidSearchRequestElement3() throws Exception
{
{
}
}
public void testInvalidSearchRequestElement4() throws Exception
{
{
}
}
public void testInvalidSearchRequestElement5() throws Exception
{
{
}
}
public void testInvalidSearchRequestElement6() throws Exception
{
{
}
}
public void testInvalidSearchRequestElement7() throws Exception
{
}
}