1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.ldap.server.tools.schema;
18
19
20 import junit.framework.TestCase;
21
22 import org.apache.ldap.server.schema.bootstrap.AbstractBootstrapSchema;
23
24
25 /***
26 * Tests the DirectorySchemaTool.
27 *
28 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
29 * @version $Rev: 157997 $
30 */
31 public class DirectorySchemaToolTest extends TestCase
32 {
33 public void testEveSchemaTool() throws Exception
34 {
35 DirectorySchemaTool tool = new DirectorySchemaTool();
36 AbstractBootstrapSchema schema = new AbstractBootstrapSchema(
37 "cn=admin,ou=system", "core", null, new String[] { "system", "dep2" }
38 ){};
39 tool.setSchema( schema );
40 tool.generate();
41 }
42 }