/*
* 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
*/
/**
* This class defines a set of tests for the
* org.opends.server.protocols.internal.InternalClientConnection class.
*/
public class InternalClientConnectionTestCase
extends InternalTestCase
{
/**
* Ensures that the Directory Server is running.
*
* @throws Exception If an unexpected problem occurs.
*/
public void startServer()
throws Exception
{
}
/**
* Retrieves a set of internal client connections that may be used for
* testing purposes.
*
* @return A set of internal client connections that may be used for
* testing purposes.
*
* @throws Exception If an unexpected problem occurs.
*/
throws Exception
{
"dn: uid=test.user,o=test",
"objectClass: top",
"objectClass: person",
"objectClass: organizationalPerson",
"objectClass: inetOrgPerson",
"uid: test.user",
"givenName: Test",
"sn: User",
"cn: Test User",
"userPassword: password");
return new Object[][]
{
new Object[] { new InternalClientConnection(
new AuthenticationInfo(dmEntry, true)) },
new Object[] { new InternalClientConnection(
new AuthenticationInfo(userEntry, false)) },
};
}
/**
* Tests the <CODE>nextOperationID</CODE> method.
*
* @param conn The internal client connection to use for the test.
*/
{
}
/**
* Tests the <CODE>nextMessageID</CODE> method.
*
* @param conn The internal client connection to use for the test.
*/
{
}
/**
* Tests the <CODE>getConnectionID</CODE> method.
*
* @param conn The internal client connection to use for the test.
*/
{
}
/**
* Tests the <CODE>getConnectionHandler</CODE> method.
*
* @param conn The internal client connection to use for the test.
*/
{
}
/**
* Tests the <CODE>getProtocol</CODE> method.
*
* @param conn The internal client connection to use for the test.
*/
{
}
/**
* Tests the <CODE>getClientAddress</CODE> method.
*
* @param conn The internal client connection to use for the test.
*/
{
}
/**
* Tests the <CODE>getServerAddress</CODE> method.
*
* @param conn The internal client connection to use for the test.
*/
{
}
/**
* Tests the <CODE>getRemoteAddress</CODE> method.
*
* @param conn The internal client connection to use for the test.
*/
{
}
/**
* Tests the <CODE>getLocalAddress</CODE> method.
*
* @param conn The internal client connection to use for the test.
*/
{
}
/**
* Tests the <CODE>isSecure</CODE> method.
*
* @param conn The internal client connection to use for the test.
*/
{
}
/**
* Tests the <CODE>getConnectionSecurityProvider</CODE> method.
*
* @param conn The internal client connection to use for the test.
*/
/*MPD
* @Test(dataProvider = "internalConns")
public void testGetConnectionSecurityProvider(InternalClientConnection conn)
{
assertNotNull(conn.getConnectionSecurityProvider());
}
*/
/**
* Tests the <CODE>setConnectionSecurityProvider</CODE> method.
*
* @param conn The internal client connection to use for the test.
*/
/* MPD
@Test(dataProvider = "internalConns")
public void testSetConnectionSecurityProvider(InternalClientConnection conn)
{
ConnectionSecurityProvider securityProvider =
conn.getConnectionSecurityProvider();
assertNotNull(securityProvider);
conn.setConnectionSecurityProvider(securityProvider);
}
*/
/**
* Tests the first <CODE>processAdd</CODE> method, which takes raw arguments.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessAdd1()
throws Exception
{
}
/**
* Tests the second <CODE>processAdd</CODE> method, which takes processed
* arguments.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessAdd2()
throws Exception
{
"objectClass: top",
"objectClass: device",
"cn: test");
}
/**
* Tests the first <CODE>processSimpleBind</CODE> method, which takes raw
* arguments.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessSimpleBind1()
throws Exception
{
}
/**
* Tests the second <CODE>processSimpleBind</CODE> method, which takes
* processed arguments.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessSimpleBind2()
throws Exception
{
}
/**
* Tests the first <CODE>processSASLBind</CODE> method, which takes raw
* arguments.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessSASLBind1()
throws Exception
{
}
/**
* Tests the second <CODE>processSASLBind</CODE> method, which takes processed
* arguments.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessSASLBind2()
throws Exception
{
}
/**
* Tests the first <CODE>processCompare</CODE> method, which takes raw
* arguments.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessCompare1()
throws Exception
{
"objectClass: top",
"objectClass: device",
"cn: test");
}
/**
* Tests the second <CODE>processCompare</CODE> method, which takes processed
* arguments.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessCompare2()
throws Exception
{
"objectClass: top",
"objectClass: device",
"cn: test");
}
/**
* Tests the first <CODE>processDelete</CODE> method, which takes raw
* arguments.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessDelete1()
throws Exception
{
"objectClass: top",
"objectClass: device",
"cn: test");
}
/**
* Tests the second <CODE>processDelete</CODE> method, which takes processed
* arguments.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessDelete2()
throws Exception
{
"objectClass: top",
"objectClass: device",
"cn: test");
}
/**
* Tests the <CODE>processExtendedOperation</CODE> method.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessExtendedOperation()
throws Exception
{
}
/**
* Tests the first <CODE>processModify</CODE> method, which takes raw
* arguments.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessModify1()
throws Exception
{
"objectClass: top",
"objectClass: device",
"cn: test");
}
/**
* Tests the second <CODE>processModify</CODE> method, which takes processed
* arguments.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessModify2()
throws Exception
{
"objectClass: top",
"objectClass: device",
"cn: test");
}
/**
* Tests the first <CODE>processModifyDN</CODE> method, which takes raw
* arguments and no newSuperior option.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessModifyDN1()
throws Exception
{
"objectClass: top",
"objectClass: device",
"cn: test");
}
/**
* Tests the second <CODE>processModifyDN</CODE> method, which takes raw
* arguments and allows newSuperior option.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessModifyDN2()
throws Exception
{
"objectClass: top",
"objectClass: device",
"cn: test");
}
/**
* Tests the third <CODE>processModifyDN</CODE> method, which takes processed
* arguments and no newSuperior option.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessModifyDN3()
throws Exception
{
"objectClass: top",
"objectClass: device",
"cn: test");
}
/**
* Tests the fourth <CODE>processModifyDN</CODE> method, which takes processed
* arguments and allows newSuperior option.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testProcessModifyDN4()
throws Exception
{
"objectClass: top",
"objectClass: device",
"cn: test");
}
/**
* Tests the first <CODE>processSearch</CODE> method, which takes a minimal
* set of raw arguments.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
{
}
/**
* Tests the second <CODE>processSearch</CODE> method, which takes a full set
* of raw arguments.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
{
}
/**
* Tests the third <CODE>processSearch</CODE> method, which takes a full set
* of raw arguments and uses an internal search listener to handle the
* results.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
{
InternalSearchOperation searchOperation = getRootConnection().processSearch(request, searchListener);
}
/**
* Tests the fourth <CODE>processSearch</CODE> method, which takes a minimal
* set of processed arguments.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
{
}
/**
* Tests the fifth <CODE>processSearch</CODE> method, which takes a full set
* of processed arguments.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
{
}
/**
* Tests the sixth <CODE>processSearch</CODE> method, which takes a full set
* of processed arguments and uses an internal search listener to handle the
* results.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
{
new TestInternalSearchListener();
InternalSearchOperation searchOperation = getRootConnection().processSearch(request, searchListener);
}
/**
* Tests the <CODE>sendSearchReference</CODE> method.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testSendSearchReference()
throws Exception
{
new SearchResultReference("ldap://server.example.com:389/");
}
/**
* Tests the <CODE>sendIntermediateResponseMessage</CODE> method.
*/
@Test
public void testSendIntermediateResponseMessage()
{
}
/**
* Tests the <CODE>disconnect</CODE> method.
*/
@Test
public void testDisconnect()
{
}
/**
* Tests the <CODE>removeOperationInProgress</CODE> method.
*/
@Test
public void testRemoveOperationInProgress()
{
}
/**
* Tests the <CODE>cancelOperation</CODE> method.
*/
@Test
public void testCancelOperation()
{
}
/**
* Tests the <CODE>cancelAllOperations</CODE> method.
*/
@Test
public void testCancelAllOperations()
{
}
/**
* Tests the <CODE>cancelAllOperationsExcept</CODE> method.
*/
@Test
public void testCancelAllOperationsExcept()
{
}
/**
* Tests the <CODE>toString</CODE> method.
*/
@Test
public void testToString()
{
}
}