From 02805157fa504b3dbf701a62280ca9aaf82183b5 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Wed, 05 Sep 2007 20:12:11 +0000
Subject: [PATCH] Partial fix for issue 1449: administration framework aggregation support
---
opends/tests/unit-tests-testng/src/server/org/opends/server/admin/MockLDAPProfile.java | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/MockLDAPProfile.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/MockLDAPProfile.java
index 399c4df..8effbd0 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/MockLDAPProfile.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/MockLDAPProfile.java
@@ -81,6 +81,8 @@
return "ds-cfg-virtual-attribute-base-dn";
} else if (pd == (PropertyDefinition<?>)td.getOptionalMultiValuedDNProperty2PropertyDefinition()) {
return "ds-cfg-virtual-attribute-group-dn";
+ } else if (pd == (PropertyDefinition<?>)td.getAggregationPropertyPropertyDefinition()) {
+ return "ds-cfg-backend-base-dn";
} else {
throw new RuntimeException("Unexpected test-child property"
+ pd.getName());
@@ -117,9 +119,9 @@
public String getObjectClass(AbstractManagedObjectDefinition<?, ?> d) {
// These casts throughout are required to work around a bug in JDK versions prior to 1.5.0_08.
if (d == (AbstractManagedObjectDefinition<?, ?>)TestParentCfgDefn.getInstance()) {
- return "ds-cfg-virtual-attribute";
+ return "ds-cfg-test-parent-dummy";
} else if (d == (AbstractManagedObjectDefinition<?, ?>)TestChildCfgDefn.getInstance()) {
- return "ds-cfg-virtual-attribute";
+ return "ds-cfg-test-child-dummy";
} else {
// Not known.
return null;
--
Gitblit v1.10.0