mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Gaetan Boismal
08.10.2016 43677e01f79d8ce33428c8ee6aa6427d09a3afb5
OPENDJ-3450 Fix makeldif example.template

The example.template was using 'domainComponent' as an objectClass.
'domainComponent' is actually an attribute type, the object class
correct value is 'template'.
2 files modified
8 ■■■■ changed files
opendj-core/src/main/resources/org/forgerock/opendj/ldif/example.template 2 ●●● patch | view | raw | blame | history
opendj-core/src/test/java/org/forgerock/opendj/ldif/EntryGeneratorTestCase.java 6 ●●●● patch | view | raw | blame | history
opendj-core/src/main/resources/org/forgerock/opendj/ldif/example.template
@@ -4,7 +4,7 @@
branch: [suffix]
objectClass: top
objectClass: domainComponent
objectClass: domain
branch: ou=People,[suffix]
objectClass: top
opendj-core/src/test/java/org/forgerock/opendj/ldif/EntryGeneratorTestCase.java
@@ -11,7 +11,7 @@
 * Header, with the fields enclosed by brackets [] replaced by your own identifying
 * information: "Portions Copyright [year] [name of copyright owner]".
 *
 * Copyright 2013-2015 ForgeRock AS.
 * Copyright 2013-2016 ForgeRock AS.
 */
package org.forgerock.opendj.ldif;
@@ -117,7 +117,7 @@
                "",
                "branch: [suffix]",
                "objectClass: top",
                "objectClass: domainComponent",
                "objectClass: domain",
                "",
                "branch: ou=People,[suffix]",
                "objectClass: top",
@@ -190,7 +190,7 @@
            assertThat(dcAttribute).isNotNull();
            assertThat(dcAttribute.firstValueAsString()).isEqualTo("example");
            checkEntryObjectClasses(topEntry, "top", "domainComponent");
            checkEntryObjectClasses(topEntry, "top", "domain");
        } finally {
            Utils.closeSilently(generator);