From f5e61220e9878f71165989bd9f21f1d0a568bb87 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Fri, 30 Jul 2010 13:23:20 +0000
Subject: [PATCH] Code refactoring, renaming and commenting only. No feature nor behavior change.

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/HistoricalTest.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/HistoricalTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/HistoricalTest.java
index 7560951..7ccdf26 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/HistoricalTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/HistoricalTest.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2008-2009 Sun Microsystems, Inc.
+ *      Copyright 2008-2010 Sun Microsystems, Inc.
  */
 
 package org.opends.server.replication.plugin;
@@ -183,11 +183,11 @@
     DN dn = DN.decode("uid=user.1," + TEST_ROOT_DN_STRING);
     Entry entry = DirectoryServer.getEntry(dn);
 
-    List<Attribute> attrs = Historical.getHistoricalAttr(entry);
+    List<Attribute> attrs = EntryHistorical.getHistoricalAttr(entry);
     Attribute before = attrs.get(0);
 
     // Check that encoding and decoding preserves the history information.
-    Historical hist = Historical.load(entry);
+    EntryHistorical hist = EntryHistorical.newInstanceFromEntry(entry);
     Attribute after = hist.encode();
 
     assertEquals(after, before);
@@ -368,7 +368,7 @@
     // This will ensure both that the Add historical information is
     // correctly added and also that the code that rebuild operation
     // from this historical information is working.
-    Iterable<FakeOperation> ops = Historical.generateFakeOperations(entry);
+    Iterable<FakeOperation> ops = EntryHistorical.generateFakeOperations(entry);
 
     // Perform a few check on the Operation to see that it
     // was correctly generated.
@@ -387,7 +387,7 @@
 
     // use historical information to generate new list of operations
     // equivalent to the operations that have been applied to this entry.
-    ops = Historical.generateFakeOperations(entry);
+    ops = EntryHistorical.generateFakeOperations(entry);
 
     // Perform a few check on the operation list to see that it
     // was correctly generated.
@@ -406,7 +406,7 @@
 
     // use historical information to generate new list of operations
     // equivalent to the operations that have been applied to this entry.
-    ops = Historical.generateFakeOperations(entry);
+    ops = EntryHistorical.generateFakeOperations(entry);
 
     // Perform a few check on the operation list to see that it
     // was correctly generated.
@@ -450,7 +450,7 @@
         assertTrue(addOp.getChangeNumber() != null);
         AddMsg addmsg = addOp.generateMessage();
         assertTrue(dn1.equals(DN.decode(addmsg.getDn())));
-        assertTrue(addmsg.getUniqueId().equals(Historical.getEntryUuid(entry)));
+        assertTrue(addmsg.getUniqueId().equals(EntryHistorical.getEntryUuid(entry)));
         String parentId = LDAPReplicationDomain.findEntryId(dn1.getParent());
         assertTrue(addmsg.getParentUid().equals(parentId));
         addmsg.createOperation(InternalClientConnection.getRootConnection());

--
Gitblit v1.10.0