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

Jean-Noël Rouvignac
08.10.2016 e6319741eef92618c785ba7d00e712bb7b07d015
Prep work for OPENDJ-1342: align APIs for DNs

Remove use of DN(RDN[]) constructor in tests
5 files modified
40 ■■■■ changed files
opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestAddResponseProtocolOp.java 8 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestCompareResponseProtocolOp.java 8 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestDeleteResponseProtocolOp.java 8 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestModifyDNResponseProtocolOp.java 8 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestModifyResponseProtocolOp.java 8 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestAddResponseProtocolOp.java
@@ -28,15 +28,11 @@
import org.forgerock.opendj.io.ASN1;
import org.forgerock.opendj.io.ASN1Reader;
import org.forgerock.opendj.io.ASN1Writer;
import org.forgerock.opendj.ldap.ByteString;
import org.forgerock.opendj.ldap.ByteStringBuilder;
import org.opends.server.DirectoryServerTestCase;
import org.opends.server.TestCaseUtils;
import org.opends.server.core.DirectoryServer;
import org.forgerock.opendj.ldap.schema.AttributeType;
import org.opends.server.types.DN;
import org.opends.server.types.LDAPException;
import org.opends.server.types.RDN;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
@@ -62,9 +58,7 @@
    TestCaseUtils.startServer();
    //Setup the DN to use in the response tests.
    AttributeType attribute = DirectoryServer.getAttributeType("testAttribute");
    ByteString attributeValue = ByteString.valueOfUtf8("testValue");
    dn = new DN(new RDN[] { new RDN(attribute, attributeValue) });
    dn = DN.valueOf("testAttribute=testValue");
  }
  /**
opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestCompareResponseProtocolOp.java
@@ -24,14 +24,10 @@
import org.forgerock.opendj.io.ASN1;
import org.forgerock.opendj.io.ASN1Reader;
import org.forgerock.opendj.io.ASN1Writer;
import org.forgerock.opendj.ldap.ByteString;
import org.forgerock.opendj.ldap.ByteStringBuilder;
import org.forgerock.opendj.ldap.schema.AttributeType;
import org.opends.server.TestCaseUtils;
import org.opends.server.core.DirectoryServer;
import org.opends.server.types.DN;
import org.opends.server.types.LDAPException;
import org.opends.server.types.RDN;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
@@ -62,9 +58,7 @@
    TestCaseUtils.startServer();
    //Setup the DN to use in the response tests.
    AttributeType attribute = DirectoryServer.getAttributeType("testAttribute");
    ByteString attributeValue = ByteString.valueOfUtf8("testValue");
    dn = new DN(new RDN[] { new RDN(attribute, attributeValue) });
    dn = DN.valueOf("testAttribute=testValue");
  }
  /**
opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestDeleteResponseProtocolOp.java
@@ -24,14 +24,10 @@
import org.forgerock.opendj.io.ASN1;
import org.forgerock.opendj.io.ASN1Reader;
import org.forgerock.opendj.io.ASN1Writer;
import org.forgerock.opendj.ldap.ByteString;
import org.forgerock.opendj.ldap.ByteStringBuilder;
import org.forgerock.opendj.ldap.schema.AttributeType;
import org.opends.server.TestCaseUtils;
import org.opends.server.core.DirectoryServer;
import org.opends.server.types.DN;
import org.opends.server.types.LDAPException;
import org.opends.server.types.RDN;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
@@ -62,9 +58,7 @@
    TestCaseUtils.startServer();
    //Setup the DN to use in the response tests.
    AttributeType attribute = DirectoryServer.getAttributeType("testAttribute");
    ByteString attributeValue = ByteString.valueOfUtf8("testValue");
    dn = new DN(new RDN[] { new RDN(attribute, attributeValue) });
    dn = DN.valueOf("testAttribute=testValue");
  }
  /**
opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestModifyDNResponseProtocolOp.java
@@ -28,15 +28,11 @@
import org.forgerock.opendj.io.ASN1;
import org.forgerock.opendj.io.ASN1Reader;
import org.forgerock.opendj.io.ASN1Writer;
import org.forgerock.opendj.ldap.ByteString;
import org.forgerock.opendj.ldap.ByteStringBuilder;
import org.opends.server.DirectoryServerTestCase;
import org.opends.server.TestCaseUtils;
import org.opends.server.core.DirectoryServer;
import org.forgerock.opendj.ldap.schema.AttributeType;
import org.opends.server.types.DN;
import org.opends.server.types.LDAPException;
import org.opends.server.types.RDN;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
@@ -63,9 +59,7 @@
    TestCaseUtils.startServer();
    //Setup the DN to use in the response tests.
    AttributeType attribute = DirectoryServer.getAttributeType("testAttribute");
    ByteString attributeValue = ByteString.valueOfUtf8("testValue");
    dn = new DN(new RDN[] { new RDN(attribute, attributeValue) });
    dn = DN.valueOf("testAttribute=testValue");
  }
  /**
opendj-server-legacy/src/test/java/org/opends/server/protocols/ldap/TestModifyResponseProtocolOp.java
@@ -24,14 +24,10 @@
import org.forgerock.opendj.io.ASN1;
import org.forgerock.opendj.io.ASN1Reader;
import org.forgerock.opendj.io.ASN1Writer;
import org.forgerock.opendj.ldap.ByteString;
import org.forgerock.opendj.ldap.ByteStringBuilder;
import org.forgerock.opendj.ldap.schema.AttributeType;
import org.opends.server.TestCaseUtils;
import org.opends.server.core.DirectoryServer;
import org.opends.server.types.DN;
import org.opends.server.types.LDAPException;
import org.opends.server.types.RDN;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
@@ -62,9 +58,7 @@
    TestCaseUtils.startServer();
    //Setup the DN to use in the response tests.
    AttributeType attribute = DirectoryServer.getAttributeType("testAttribute");
    ByteString attributeValue = ByteString.valueOfUtf8("testValue");
    dn = new DN(new RDN[] { new RDN(attribute, attributeValue) });
    dn = DN.valueOf("testAttribute=testValue");
  }
  /**