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

Jean-Noël Rouvignac
28.09.2015 5b875407066c5ac4f55e9d91eb6fc1f50a031544
Do not apply suppressed modification in AttrHistoricalMultipleTest

AttrHistoricalMultipleTest.java:
Used CONFLICT instead of CONFLICT_BUT_SHOULD_NOT_BE with replayOperationSuppressMod()
1 files modified
14 ■■■■ changed files
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/AttrHistoricalMultipleTest.java 14 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/AttrHistoricalMultipleTest.java
@@ -199,8 +199,8 @@
    assertAttributeValues(entry, "X", "Y");
    mod = newModification(DELETE, "Y");
    replayOperationSuppressMod(t[1], entry, mod, E.CONFLICT_BUT_SHOULD_NOT_BE);
    assertAttributeValues(entry, "X");
    replayOperationSuppressMod(t[1], entry, mod, E.CONFLICT);
    assertAttributeValues(entry, "X", "Y");
  }
  @Test
@@ -211,8 +211,8 @@
    replay_addDeleteNoValue(t[0], t[2]);
    mod = newModification(ADD, "Y");
    replayOperationSuppressMod(t[1], entry, mod, E.CONFLICT_BUT_SHOULD_NOT_BE);
    assertAttributeValues(entry, "Y");
    replayOperationSuppressMod(t[1], entry, mod, E.CONFLICT);
    assertNoAttributeValue(entry);
  }
  @Test
@@ -229,7 +229,7 @@
    assertNoAttributeValue(entry);
    mod = newModification(ADD, "X");
    replayOperationSuppressMod(t[1], entry, mod, E.CONFLICT_BUT_SHOULD_NOT_BE);
    replayOperationSuppressMod(t[1], entry, mod, E.CONFLICT);
    assertNoAttributeValue(entry);
  }
@@ -353,8 +353,8 @@
    replay_addDeleteNoValue(t[0], t[2]);
    mod = newModification(REPLACE, "Y");
    replayOperationSuppressMod(t[1], entry, mod, E.CONFLICT_BUT_SHOULD_NOT_BE);
    assertAttributeValues(entry, "Y");
    replayOperationSuppressMod(t[1], entry, mod, E.CONFLICT);
    assertNoAttributeValue(entry);
  }
  private CSN[] newCSNs(int nb)