You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Ru...@tine.no on 2007/09/20 14:01:45 UTC

ApacheDS and unittest

Hi

I following the description as found here:
http://directory.apache.org/apacheds/1.5/using-apacheds-for-unit-tests.html

and trying to setup ApacheDS for unit testing.


The example uses version 1.0, but I am trying to use the 1.5.1 version.

Everything works fine up to "Adding your own schema"



When I copy-paste the following:

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

        configuration.setBootstrapSchemas(schemas);


I get a compilation error.

the configuration.setBootstrapSchemas method is no longer available.


I've tried to dig in the javadocs etc, but I'm not able to find solve how
to create custom schemas.

Is there anyone who knows how to get around this - i.e refactor this code
to version 1.5.1 of ApacheDS?

Source code, pom.xml, test-source etc can be posted if necessary.


Regards
Rune Engseth


Re: ApacheDS and unittest

Posted by Emmanuel Lecharny <el...@gmail.com>.
Hi !

sorry for the outdated doco. This part of the wiki must be rewitten,
to reflect the changes into the server.

Can you fill a JIRA about it ?

We will try to draft a quick solution for you before this week-end.

Thanks !

On 9/20/07, Rune.Engseth@tine.no <Ru...@tine.no> wrote:
>
> Hi
>
> I following the description as found here:
> http://directory.apache.org/apacheds/1.5/using-apacheds-for-unit-tests.html
>
> and trying to setup ApacheDS for unit testing.
>
>
> The example uses version 1.0, but I am trying to use the 1.5.1 version.
>
> Everything works fine up to "Adding your own schema"
>
>
>
> When I copy-paste the following:
>
> Set<AbstractBootstrapSchema> schemas = configuration.getBootstrapSchemas();
>         schemas.add( new DemoSchema() );
>
>         configuration.setBootstrapSchemas(schemas);
>
>
> I get a compilation error.
>
> the configuration.setBootstrapSchemas method is no longer available.
>
>
> I've tried to dig in the javadocs etc, but I'm not able to find solve how
> to create custom schemas.
>
> Is there anyone who knows how to get around this - i.e refactor this code
> to version 1.5.1 of ApacheDS?
>
> Source code, pom.xml, test-source etc can be posted if necessary.
>
>
> Regards
> Rune Engseth
>
>


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com