Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 1983 invoked from network); 14 Sep 2008 23:37:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Sep 2008 23:37:34 -0000 Received: (qmail 62825 invoked by uid 500); 14 Sep 2008 23:37:30 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 62785 invoked by uid 500); 14 Sep 2008 23:37:30 -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 62774 invoked by uid 99); 14 Sep 2008 23:37:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Sep 2008 16:37:30 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.233.166.181] (HELO py-out-1112.google.com) (64.233.166.181) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Sep 2008 23:36:32 +0000 Received: by py-out-1112.google.com with SMTP id d32so1598905pye.19 for ; Sun, 14 Sep 2008 16:36:46 -0700 (PDT) Received: by 10.142.207.8 with SMTP id e8mr2424623wfg.281.1221435406108; Sun, 14 Sep 2008 16:36:46 -0700 (PDT) Received: by 10.142.215.20 with HTTP; Sun, 14 Sep 2008 16:36:46 -0700 (PDT) Message-ID: Date: Mon, 15 Sep 2008 11:36:46 +1200 From: "Mark Derricutt" To: dev@directory.apache.org Subject: Loading custom schemas with AbstractServerTest under 1.5.4 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_64431_17713531.1221435406100" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_64431_17713531.1221435406100 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 'lo With the recent changes to AbstractServerTest in 1.5.4, how does one register custom schemas now? Under 1.5.3 I was using: Set schemas = configuration.getBootstrapSchemas(); schemas.add(new Smx3Schema()); configuration.setBootstrapSchemas(schemas); where configuration came from the AbstractServerTest. It looks like the test harness has changed a bit. I"m actually using TestNG to execute my tests, rather than JUnit so hopefully theres still a way to handle this easily. Mark He who started looking at ldap integration testing at the wrong time.. -- "It is easier to optimize correct code than to correct optimized code." -- Bill Harlan ------=_Part_64431_17713531.1221435406100 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline
'lo

With the recent changes to AbstractServerTest in 1.5.4, how does one register custom schemas now?

Under 1.5.3 I was using:

        Set<AbstractBootstrapSchema> schemas = configuration.getBootstrapSchemas();
        schemas.add(new Smx3Schema());
        configuration.setBootstrapSchemas(schemas);

where configuration came from the AbstractServerTest.  It looks like the test harness has changed a bit.  I"m actually using TestNG to execute my tests, rather than JUnit so hopefully theres still a way to handle this easily.

Mark
He who started looking at ldap integration testing at the wrong time..

--
"It is easier to optimize correct code than to correct optimized code." -- Bill Harlan
------=_Part_64431_17713531.1221435406100--