| | |
| | | /** |
| | | * Tests the account usability request control. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class AccountUsabilityRequestControlTestCase extends ControlsTestCase |
| | | { |
| | | @Test() |
| | |
| | | /** |
| | | * Tests the account usability response control. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class AccountUsabilityResponseControlTestCase extends ControlsTestCase |
| | | { |
| | | @Test() |
| | |
| | | /** |
| | | * Test {@code StaticUtils}. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public final class StaticUtilsTestCase extends UtilTestCase |
| | | { |
| | | /** |
| | |
| | | * This Test Class tests various matching rules for their compability against |
| | | * RFC 4517,4518 and 3454. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class StringPrepProfileTestCase extends UtilTestCase |
| | | { |
| | | /** |
| | |
| | | /** |
| | | * This class tests the Synchronous Connection API. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class SynchronousConnectionTestCase extends TypesTestCase |
| | | { |
| | | private AsynchronousConnection asyncCon; |
| | |
| | | * An abstract base class for all ASN1Writer test cases. |
| | | */ |
| | | @Test(groups = { "precommit", "asn1", "sdk" }) |
| | | @SuppressWarnings("javadoc") |
| | | public abstract class ASN1WriterTestCase extends OpenDJTestCase |
| | | { |
| | | |
| | |
| | | /** |
| | | * Test {@code AttributeDescription}. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public final class AttributeDescriptionTestCase extends OpenDJTestCase |
| | | { |
| | | @DataProvider(name = "dataForCompareCoreSchema") |
| | |
| | | /** |
| | | * Abstract test case for the ByteSequence interface. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public abstract class ByteSequenceTestCase extends SdkTestCase |
| | | { |
| | | @Test(dataProvider = "byteSequenceProvider") |
| | |
| | | /** |
| | | * Test case for ByteStringBuilder. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class ByteStringBuilderTestCase extends ByteSequenceTestCase |
| | | { |
| | | private static final byte[] eightBytes = new byte[] { (byte) 0x01, |
| | |
| | | /** |
| | | * This class defines a set of tests for the ByteString class. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class ByteStringTestCase extends ByteSequenceTestCase |
| | | { |
| | | /** |
| | |
| | | /** |
| | | * Tests the {@code ConnectionFactory} classes. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class ConnectionFactoryTestCase extends SdkTestCase |
| | | { |
| | | class MyResultHandler implements ResultHandler<AsynchronousConnection> |
| | |
| | | /** |
| | | * This class defines a set of tests for the org.forgerock.opendj.ldap.DN class. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class DNTestCase extends SdkTestCase |
| | | { |
| | | /** |
| | |
| | | /** |
| | | * Test {@code Entry}. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public final class EntryTestCase extends SdkTestCase |
| | | { |
| | | private static interface EntryFactory |
| | |
| | | |
| | | |
| | | |
| | | @SuppressWarnings("javadoc") |
| | | public class FilterTestCase extends SdkTestCase |
| | | { |
| | | @DataProvider(name = "badfilterstrings") |
| | |
| | | * A simple ldap server that manages 1000 entries and used for running |
| | | * testcases. //FIXME: make it MT-safe. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class LDAPServer implements |
| | | ServerConnectionFactory<LDAPClientContext, Integer> |
| | | { |
| | |
| | | * Test {@code BasicAttribute}. |
| | | */ |
| | | |
| | | @SuppressWarnings("javadoc") |
| | | public final class LinkedAttributeTestCase extends SdkTestCase |
| | | { |
| | | @Test |
| | |
| | | /** |
| | | * This class defines a set of tests for the {@link org.forgerock.opendj.ldap.RDN} class. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public final class RDNTestCase extends TypesTestCase |
| | | { |
| | | |
| | |
| | | */ |
| | | |
| | | @Test(groups = { "precommit", "types", "sdk" }) |
| | | @SuppressWarnings("javadoc") |
| | | public class TypesTestCase extends SdkTestCase |
| | | { |
| | | /** |
| | |
| | | /** |
| | | * Tests Abandon requests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class AbandonRequestTestCase extends RequestTestCase |
| | | { |
| | | @DataProvider(name = "abandonRequests") |
| | |
| | | /** |
| | | * Tests ADD requests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class AddRequestTestCase extends RequestTestCase |
| | | { |
| | | @DataProvider(name = "addRequests") |
| | |
| | | /** |
| | | * Tests anonymous SASL bind requests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class AnonymousSASLBindRequestTestCase extends BindRequestTestCase |
| | | { |
| | | @DataProvider(name = "anonymousSASLBindRequests") |
| | |
| | | /** |
| | | * Tests the BIND requests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public abstract class BindRequestTestCase extends RequestTestCase |
| | | { |
| | | @Test(dataProvider = "testRequests") |
| | |
| | | /** |
| | | * Tests CRAM MD5 SASL bind requests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class CRAMMD5SASLBindRequestTestCase extends BindRequestTestCase |
| | | { |
| | | @DataProvider(name = "CRAMMD5SASLBindRequests") |
| | |
| | | /** |
| | | * @author sin |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class CompareRequestTestCase extends RequestTestCase |
| | | { |
| | | @DataProvider(name = "CompareRequests") |
| | |
| | | /** |
| | | * Tests the delete request. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class DeleteRequestTestCase extends RequestTestCase |
| | | { |
| | | @DataProvider(name = "DeleteRequests") |
| | |
| | | /** |
| | | * Tests Digest MD5 SASL requests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class DigestMD5SASLBindRequestTestCase extends BindRequestTestCase |
| | | { |
| | | @DataProvider(name = "DigestMD5SASLBindRequests") |
| | |
| | | /** |
| | | * Tests various extended requests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public abstract class ExtendedRequestTestCase extends RequestTestCase |
| | | { |
| | | @Test(dataProvider = "testRequests") |
| | |
| | | /** |
| | | * Tests the external SASL Bind requests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class ExternalSASLBindRequestTestCase extends BindRequestTestCase |
| | | { |
| | | @DataProvider(name = "ExternalSASLBindRequests") |
| | |
| | | /** |
| | | * Tests GSSAPI SASL Bind requests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class GSSAPISASLBindRequestTestCase extends BindRequestTestCase |
| | | { |
| | | @DataProvider(name = "GSSAPISASLBindRequests") |
| | |
| | | /** |
| | | * Tests Generic Bind requests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class GenericBindRequestTestCase extends BindRequestTestCase |
| | | { |
| | | @DataProvider(name = "GenericBindRequests") |
| | |
| | | /** |
| | | * Tests the Modify DN requests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class ModifyDNRequestTestCase extends RequestTestCase |
| | | { |
| | | @DataProvider(name = "ModifyDNRequests") |
| | |
| | | /** |
| | | * Tests the modify request. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class ModifyRequestTestCase extends RequestTestCase |
| | | { |
| | | @DataProvider(name = "ModifyRequests") |
| | |
| | | /** |
| | | * Tests Plain SASL Bind requests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class PlainSASLBindRequestTestCase extends BindRequestTestCase |
| | | { |
| | | @DataProvider(name = "plainSASLBindRequests") |
| | |
| | | /** |
| | | * Tests the Request class. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public abstract class RequestTestCase extends RequestsTestCase |
| | | { |
| | | // Dummy decoder which does nothing. |
| | |
| | | /** |
| | | * Tests Simple Bind requests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class SimpleBindRequestTestCase extends BindRequestTestCase |
| | | { |
| | | @DataProvider(name = "simpleBindRequests") |
| | |
| | | /** |
| | | * Tests the unbind requests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class UnbindRequestTestCase extends RequestTestCase |
| | | { |
| | | @DataProvider(name = "UnbindRequests") |
| | |
| | | /** |
| | | * Abstract schema element tests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public abstract class AbstractSchemaElementTestCase extends SchemaTestCase |
| | | { |
| | | protected static final Map<String, List<String>> EMPTY_PROPS = Collections |
| | |
| | | /** |
| | | * Approximate matching rule tests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class ApproximateMatchingRuleTest extends SchemaTestCase |
| | | { |
| | | MatchingRule metaphone = Schema.getCoreSchema().getMatchingRule( |
| | |
| | | /** |
| | | * Attribute type tests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class AttributeTypeTest extends AbstractSchemaElementTestCase |
| | | { |
| | | private final Schema schema; |
| | |
| | | /** |
| | | * Core schema tests |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class CoreSchemaTest extends SchemaTestCase |
| | | { |
| | | @Test |
| | |
| | | /** |
| | | * Test the DistinguishedNameEqualityMatchingRule |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class DistinguishedNameEqualityMatchingRuleTest extends MatchingRuleTest |
| | | { |
| | | @DataProvider(name = "matchingRuleInvalidAttributeValues") |
| | |
| | | /** |
| | | * Enum syntax tests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class EnumSyntaxTestCase extends SyntaxTestCase |
| | | { |
| | | /** |
| | |
| | | /** |
| | | * Test The equality matching rules and the equality matching rule api. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public abstract class MatchingRuleTest extends SchemaTestCase |
| | | { |
| | | /** |
| | |
| | | /** |
| | | * Ordering matching rule tests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public abstract class OrderingMatchingRuleTest extends SchemaTestCase |
| | | { |
| | | /** |
| | |
| | | /** |
| | | * Regex syntax tests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class RegexSyntaxTestCase extends SyntaxTestCase |
| | | { |
| | | /** |
| | |
| | | /** |
| | | * Test schema utilities. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class SchemaUtilsTest extends SchemaTestCase |
| | | { |
| | | |
| | |
| | | /** |
| | | * Substitution syntax tests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class SubstitutionSyntaxTestCase extends SyntaxTestCase |
| | | { |
| | | /** |
| | |
| | | * Abstract class for building test for the substring matching rules. This class |
| | | * is intended to be extended by one class for each substring matching rules. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public abstract class SubstringMatchingRuleTest extends SchemaTestCase |
| | | { |
| | | /** |
| | |
| | | /** |
| | | * Syntax tests. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public abstract class SyntaxTestCase extends SchemaTestCase |
| | | { |
| | | /** |