Example #1
0
  @Override
  protected void customizeContext(Context context) {
    super.customizeContext(context);

    String classname = this.getClass().getName();
    context.put("test-path", getBasedir() + "/target/test-classes/" + classname.replace('.', '/'));
  }
Example #2
0
  /*
   * (non-Javadoc)
   * @see org.sonatype.ldaptestsuite.AbstractLdapTestEnvironment#setUp()
   */
  @Override
  public void setUp() throws Exception {
    assertNotNull(lookup(LdapConfiguration.class));

    super.setUp();

    this.realm = this.lookup(Realm.class, "LdapAuthenticatingRealm");
    this.ldapManager = this.lookup(LdapManager.class);
  }