directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John E. Conlon" <jcon...@verticon.com>
Subject Problem creating subContext with a Name.
Date Fri, 30 Jun 2006 19:56:11 GMT
Encountered a problem when using a Name object to create a SubContext.  

Shouldn't the following test pass?

public void testCreateContextWithCompositeName() throws Exception {
  Attributes attrs = new BasicAttributes(true);
  Attribute objclass = new BasicAttribute("objectClass");
  objclass.add("top");
  objclass.add("extensibleObject");
  attrs.put(objclass);

  Name relativeName = new CompositeName("cn=dns,ou=services");
  
  //ctx.createSubcontext(relativeName.toString(), attrs);//Works
  ctx.createSubcontext(relativeName, attrs);//Fails!
}


- John


Mime
View raw message