Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1433

Add tests for every methods in SchemaManager

    XMLWordPrintableJSON

Details

    • Test
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 2.0.0-RC1
    • 2.0.0-RC1
    • code quality, test
    • None

    Description

      We have to write tests for each of the SchemaManager method. The following list are all the methods we want to have some test for, assuming that the add() method has already some existing tests. The 'T' in from of a method denotates tat this method has some tests.

      Server API :
      boolean load( Schema... schemas ) throws Exception
      boolean load( String... schemas ) throws Exception
      boolean loadWithDeps( Schema... schemas ) throws Exception
      boolean loadWithDeps( String... schemas ) throws Exception
      boolean loadDisabled( Schema... schemas ) throws Exception
      boolean loadDisabled( String... schemas ) throws Exception
      boolean loadAllEnabled() throws Exception
      boolean unload( Schema... schemas )
      boolean unload( String... schemas )
      boolean enable( Schema... schemas ) throws Exception
      boolean enable( String... schemas ) throws Exception
      boolean disable( Schema... schemas )
      boolean disable( String... schemas )

      Studio API :
      boolean loadRelaxed( Schema... schemas ) throws Exception
      boolean loadRelaxed( String... schemas ) throws Exception
      boolean loadWithDepsRelaxed( Schema... schemas ) throws Exception
      boolean loadWithDepsRelaxed( String... schemas ) throws Exception
      boolean loadAllEnabledRelaxed() throws Exception
      boolean enableRelaxed( Schema... schemas )
      boolean enableRelaxed( String... schemas )
      boolean disabledRelaxed( Schema... schemas )
      boolean disabledRelaxed( String... schemas )

      boolean verify( Schema... schemas ) throws Exception
      boolean verify( String... schemas ) throws Exception

      Utility methods :
      T boolean add( SchemaObject schemaObject ) throws Exception
      AttributeType lookupAttributeTypeRegistry( String oid ) throws NamingException
      LdapComparator<?> lookupComparatorRegistry( String oid ) throws NamingException
      void initialize() throws Exception
      boolean isSchemaLoaded( String schemaName )

      getters/setters :
      Registries getRegistries()
      AttributeTypeRegistry getAttributeTypeRegistry()
      ComparatorRegistry getComparatorRegistry()
      DITContentRuleRegistry getDITContentRuleRegistry()
      DITStructureRuleRegistry getDITStructureRuleRegistry()
      MatchingRuleRegistry getMatchingRuleRegistry()
      MatchingRuleUseRegistry getMatchingRuleUseRegistry()
      NormalizerRegistry getNormalizerRegistry()
      NameFormRegistry getNameFormRegistry()
      ObjectClassRegistry getObjectClassRegistry()
      LdapSyntaxRegistry getLdapSyntaxRegistry()
      SyntaxCheckerRegistry getSyntaxCheckerRegistry()
      Map<String, OidNormalizer> getNormalizerMapping()
      void setRegistries( Registries registries )
      List<Throwable> getErrors()
      void setSchemaLoader( SchemaLoader schemaLoader )
      LdapDN getNamingContext()
      SchemaLoader getLoader()
      OidRegistry getOidRegistry()
      Schema getLoadedSchema( String schemaName )

      Should disappear :
      public boolean swapRegistries( Registries targetRegistries ) throws NamingException
      SchemaObject unregister( SchemaObject schemaObject ) throws NamingException
      SchemaObject unregisterAttributeType( String attributeTypeOid ) throws NamingException
      SchemaObject unregisterComparator( String comparatorOid ) throws NamingException
      SchemaObject unregisterDitControlRule( String ditControlRuleOid ) throws NamingException
      SchemaObject unregisterDitStructureRule( String ditStructureRuleOid ) throws NamingException
      SchemaObject unregisterMatchingRule( String matchingRuleOid ) throws NamingException
      SchemaObject unregisterMatchingRuleUse( String matchingRuleUseOid ) throws NamingException
      SchemaObject unregisterNameForm( String nameFormOid ) throws NamingException
      SchemaObject unregisterNormalizer( String normalizerOid ) throws NamingException
      SchemaObject unregisterObjectClass( String objectClassOid ) throws NamingException
      SchemaObject unregisterLdapSyntax( String ldapSyntaxOid ) throws NamingException
      SchemaObject unregisterSyntaxChecker( String syntaxCheckerOid ) throws NamingException

      Attachments

        Activity

          People

            Unassigned Unassigned
            elecharny Emmanuel L├ęcharny
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: