org.apache.ldap.clients.ldaptest
Class LdapTestCase

java.lang.Object
  extended by org.apache.ldap.clients.ldaptest.LdapTestCase

public class LdapTestCase
extends java.lang.Object

Interface into the LDAP TEST case. This will define a test case, which is the ldap operation and the parameters that go along with it. These cases will be paired up with session for test runs.


Field Summary
static int ADD
           
static int BIND
           
static int DELETE
           
static int MODIFY
           
static int MODIFYDN
           
static int SEARCH
           
 
Constructor Summary
LdapTestCase()
           
 
Method Summary
 java.lang.String getArgs()
          Get the command line arguments for the operation.
 int getOperation()
          Get the LDAP Operation to perform.
 java.lang.String getTestCaseDescription()
          Get the session description
 java.lang.String getTestCaseName()
          Get the session name
 void setArgs(java.lang.String a_string)
          Set the command line arguments for the operation
 void setOperation(int a_int)
          Set the LDAP Operation to perform.
 void setTestCaseDescription(java.lang.String a_string)
          Set the testCase description
 void setTestCaseName(java.lang.String a_string)
          Set the testCase name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADD

public static final int ADD
See Also:
Constant Field Values

DELETE

public static final int DELETE
See Also:
Constant Field Values

MODIFY

public static final int MODIFY
See Also:
Constant Field Values

MODIFYDN

public static final int MODIFYDN
See Also:
Constant Field Values

BIND

public static final int BIND
See Also:
Constant Field Values

SEARCH

public static final int SEARCH
See Also:
Constant Field Values
Constructor Detail

LdapTestCase

public LdapTestCase()
Method Detail

getArgs

public java.lang.String getArgs()
Get the command line arguments for the operation.

Returns:
arguments, just as they would appear from a command line

getOperation

public int getOperation()
Get the LDAP Operation to perform. can be bind, add, modify, delete, modifydn or search

Returns:
LDAP Operation to perform

setArgs

public void setArgs(java.lang.String a_string)
Set the command line arguments for the operation

Parameters:
a_string - arguments, just as they would appear from a command line

setOperation

public void setOperation(int a_int)
Set the LDAP Operation to perform. can be bind, add, modify, delete, modifydn or search

Parameters:
a_string - LDAP Operation to perform

getTestCaseDescription

public java.lang.String getTestCaseDescription()
Get the session description

Returns:
Session description

getTestCaseName

public java.lang.String getTestCaseName()
Get the session name

Returns:
Session name

setTestCaseDescription

public void setTestCaseDescription(java.lang.String a_string)
Set the testCase description

Parameters:
a_string - testCase description

setTestCaseName

public void setTestCaseName(java.lang.String a_string)
Set the testCase name

Parameters:
a_string - testCase name