Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 62312 invoked from network); 8 Dec 2009 15:42:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 15:42:42 -0000 Received: (qmail 41125 invoked by uid 500); 8 Dec 2009 15:42:42 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 41072 invoked by uid 500); 8 Dec 2009 15:42:42 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 41064 invoked by uid 99); 8 Dec 2009 15:42:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 15:42:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 15:42:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7959929A0016 for ; Tue, 8 Dec 2009 07:42:18 -0800 (PST) Message-ID: <541173459.1260286938495.JavaMail.jira@brutus> Date: Tue, 8 Dec 2009 15:42:18 +0000 (UTC) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Commented: (DIRSERVER-1433) Add tests for every methods in SchemaManager In-Reply-To: <1134417678.1259940980809.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSERVER-1433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787507#action_12787507 ] Emmanuel Lecharny commented on DIRSERVER-1433: ---------------------------------------------- Tests added for : boolean enable( Schema... schemas ) throws Exception boolean enable( String... schemas ) throws Exception boolean disable( Schema... schemas ) boolean disable( String... schemas ) > 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-RC1 > > > 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 getNormalizerMapping() > void setRegistries( Registries registries ) > List 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. - You can reply to this email to add a comment to the issue online.