コード例 #1
0
  @Override
  public void setUp() throws Exception {
    super.setUp();

    ldapContextFactory = this.lookup(LdapContextFactory.class, "PlexusLdapContextFactory");
    ldapConfig = this.lookup(LdapConfiguration.class);
  }
コード例 #2
0
  @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();
  }