@Override public void setUp() throws Exception { super.setUp(); ldapContextFactory = this.lookup(LdapContextFactory.class, "PlexusLdapContextFactory"); ldapConfig = this.lookup(LdapConfiguration.class); }
@Override public void tearDown() throws Exception { super.tearDown(); // delete the ldap.xml file File confFile = new File(getBasedir() + "/target/test-classes/not-configured/", "ldap.xml"); confFile.delete(); }