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

Jean-Noel Rouvignac
20.41.2013 00f10a3cb74fca7bfa0e4a93a6d9dfd18a08d331
Removed useless import and unused code.
1 files modified
32 ■■■■■ changed files
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java 32 ●●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java
@@ -72,7 +72,6 @@
import org.opends.server.replication.protocol.InitializeTargetMsg;
import org.opends.server.replication.protocol.ReplicationMsg;
import org.opends.server.replication.protocol.RoutableMsg;
import org.opends.server.replication.protocol.SocketSession;
import org.opends.server.replication.server.ReplServerFakeConfiguration;
import org.opends.server.replication.server.ReplicationServer;
import org.opends.server.schema.DirectoryStringSyntax;
@@ -487,37 +486,6 @@
    return entries;
  }
  /*
   * Creates one  user entry necessary to the test.
   */
  private String newLDIFEntry(int entryCnt)
  {
    // It is relevant to test ReplLDIFInputStream
    // and ReplLDIFOutputStream with big entries
    char bigAttributeValue[] = new char[30240];
    for (int i=0; i<bigAttributeValue.length; i++)
      bigAttributeValue[i] = Integer.toString(i).charAt(0);
    String filler = "000000000000000000000000000000000000";
    String useri="0000"+entryCnt;
    return  "dn: cn="+useri+",ou=people," + EXAMPLE_DN + "\n"
            + "objectclass: top\n"
            + "objectclass: person\n"
            + "objectclass: organizationalPerson\n"
            + "objectclass: inetOrgPerson\n"
            + "cn: "+useri+"_cn"+"\n"
            + "sn: "+useri+"_sn"+"\n"
            + "uid: "+useri+"_uid"+"\n"
            + "description:: "+ Base64.encode(
                new String(bigAttributeValue).getBytes())+"\n"
            + "entryUUID: 21111111-1111-1111-1111-"+useri+
                filler.substring(0, 12-useri.length())+"\n"
            + "\n";
  }
  /**
   * Broker will send the entries to a server.
   * @param broker The broker that will send the entries.