You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org> on 2011/08/26 18:26:35 UTC

[jira] [Updated] (DIRSERVER-1433) Add tests for every methods in SchemaManager

     [ https://issues.apache.org/jira/browse/DIRSERVER-1433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre-Arnaud Marcelot updated DIRSERVER-1433:
----------------------------------------------

    Fix Version/s:     (was: 2.0.0-M2)
                   2.0.0-M3

> Add tests for every methods in SchemaManager
> --------------------------------------------
>
>                 Key: DIRSERVER-1433
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1433
>             Project: Directory ApacheDS
>          Issue Type: Test
>    Affects Versions: 2.0.0-RC1
>            Reporter: Emmanuel Lecharny
>            Priority: Critical
>             Fix For: 2.0.0-M3
>
>
> 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

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira