JoinAdmin ja = (JoinAdmin)admin;
Entry[] attrs = ja.getLookupAttributes();
logger.log(Level.INFO, "Calling JoinAdmin::getLookupAttributes: got " +
attrs.length + " items");
String name = "Spanguini";
Entry[] newAttrs = { new Name(name) };
logger.log(Level.INFO, "Calling JoinAdmin::addLookupAttributes()");
ja.addLookupAttributes(newAttrs);
logger.log(Level.INFO, "Checking addLookupAttributes call via get call");
attrs = ja.getLookupAttributes();
if (!assertContainsName(attrs, name)) {
throw new TestException(
"Did not receive proper attribute setting for Name " +
"after adding");
}
name = name + "2";
Entry[] templates = { new Name() };
newAttrs[0] = new Name(name);
logger.log(Level.INFO, "Calling JoinAdmin::modifyLookupAttributes()");
ja.modifyLookupAttributes(templates, newAttrs);
attrs = ja.getLookupAttributes();
if (!assertContainsName(attrs, name)) {
throw new TestException("Did not receive proper attribute setting for Name after modifying");