I want the embedded ApacheDS to launch a new schema / content when running my tests. I tried importing LDIF with these lines:
LdifFileLoader ldifLoader = new LdifFileLoader(service.getAdminSession(), "path/to/my/export.ldif"); ldifLoader.execute();
But now ApacheDS stores information in the directory server in the current working directory. I had to manually delete the directory server every time, and I wonder if this is correct ...
I exported the schema as LDIF, and I want to import it first. Can I import it using LdifFileLoader ? Or am I doing it wrong?
source share