| | |
| | | import org.forgerock.opendj.ldap.DN; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.RDN; |
| | | import org.forgerock.opendj.ldap.schema.CoreSchema; |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.types.Attribute; |
| | | import org.opends.server.types.AttributeBuilder; |
| | | import org.opends.server.types.Attributes; |
| | |
| | | try (LDIFReader reader = createLDIFReader(ldifString)) { |
| | | Entry entry = reader.readEntry(); |
| | | Assert.assertNotNull(entry); |
| | | Assert.assertTrue(entry.hasValue(getDescriptionAttributeType(), ByteString.valueOfUtf8("once upon a time in the west"))); |
| | | Assert.assertTrue(entry.hasValue(getDescriptionAttributeType(), |
| | | ByteString.valueOfUtf8("once upon a time in the west"))); |
| | | } |
| | | } |
| | | |
| | |
| | | try (LDIFReader reader = createLDIFReader(ldifString)) { |
| | | Entry entry = reader.readEntry(); |
| | | Assert.assertNotNull(entry); |
| | | Assert.assertTrue(entry.hasValue(getDescriptionAttributeType(), ByteString.valueOfUtf8("once upon a time in the west"))); |
| | | Assert.assertTrue(entry.hasValue(getDescriptionAttributeType(), |
| | | ByteString.valueOfUtf8("once upon a time in the west"))); |
| | | } |
| | | } |
| | | |
| | |
| | | Assert.assertTrue(i.hasNext()); |
| | | mod = i.next().toModification(); |
| | | Assert.assertEquals(mod.getModificationType(), ModificationType.REPLACE); |
| | | attr = Attributes.empty(DirectoryServer.getAttributeType("postaladdress")); |
| | | attr = Attributes.empty(CoreSchema.getPostalAddressAttributeType()); |
| | | Assert.assertEquals(mod.getAttribute(), attr); |
| | | |
| | | // Change record #7. |