From 1a26464190204cdcb6d66d4125dd5f058cfb08f8 Mon Sep 17 00:00:00 2001
From: pgamba <pgamba@localhost>
Date: Fri, 02 Nov 2007 14:13:02 +0000
Subject: [PATCH] Fix 2321 - Fixes specially ReplLDIFInputStream and ReplLDIFOutput stream regarding different cases of entry sizes and buffer sizes
---
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java
index fdac923..42ec433 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java
@@ -428,6 +428,12 @@
*/
private String[] newLDIFEntries()
{
+ // 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[] entries =
{
"dn: dc=example,dc=com\n"
@@ -461,7 +467,7 @@
+ "cn: Robert Langman\n"
+ "sn: Langman\n"
+ "uid: robert\n"
- + "telephonenumber: +1 408 555 1213\n"
+ + "telephonenumber: "+ new String(bigAttributeValue)+"\n"
+ "entryUUID: 21111111-1111-1111-1111-111111111114\n"
+ "\n"
};
--
Gitblit v1.10.0