public void testDiffClearingHasNoEffectWhileDisabled() { startWithStateAndDiff(); document.startDiffRetention(); document.clearDiffs(); document.stopDiffRetention(); assertFalse(state.isCompleteDiff()); assertFalse(state.isCompleteState()); assertTrue(OpComparators.equalDocuments(state.asOperation(), Y)); }
public void testDiffClearingWorksWhenEnabled() { startWithStateAndDiff(); document.clearDiffs(); assertTrue(state.isCompleteState()); assertTrue(OpComparators.equalDocuments(state.asOperation(), Y)); }