From 37736fa7a425638881423c927939e983bffa6051 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 09 Sep 2016 12:49:00 +0000
Subject: [PATCH] Prep work OPENDJ-3281: add a unit test
---
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/AttrHistoricalMultipleTest.java | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/AttrHistoricalMultipleTest.java b/opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/AttrHistoricalMultipleTest.java
index ddd3b48..31b211f 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/AttrHistoricalMultipleTest.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/AttrHistoricalMultipleTest.java
@@ -249,11 +249,29 @@
assertNoAttributeValue(entry);
mod = newModification(ADD, "X");
- replayOperation(t[1], entry, mod, SUCCESS);
+ replayOperation(t[2], entry, mod, SUCCESS);
assertAttributeValues(entry, "X");
}
@Test
+ public void replay_addThenDeleteThenAdd_differentCaseWithCaseIgnoreAttributeType() throws Exception
+ {
+ CSN[] t = newCSNs(3);
+
+ mod = newModification(ADD, "X");
+ replayOperation(t[0], entry, mod, SUCCESS);
+ assertAttributeValues(entry, "X");
+
+ mod = newModification(DELETE, "x");
+ replayOperation(t[1], entry, mod, SUCCESS);
+ assertNoAttributeValue(entry);
+
+ mod = newModification(ADD, "X");
+ replayOperationSuppressMod(t[2], entry, mod, CONFLICT);
+ assertAttributeValues(entry);
+ }
+
+ @Test
public void replay_deleteNoPreviousHistory() throws Exception
{
mod = newModification(DELETE, "Y");
--
Gitblit v1.10.0