assertEquals(false, iterator.hasNextNode());
}
public void testTargetChanges() {
Tree4Deltas deltas = new Tree4Deltas();
deltas.reset(10);
assertEquals("__________", deltas.toString());
deltas.targetDelete(5, 6, null);
deltas.targetInsert(2, 3, null);
deltas.targetUpdate(8, 9, null, null);
assertEquals("__+___X__U_", deltas.toString());
deltas.sourceInsert(0);
assertEquals("___+___X__U_", deltas.toString());
deltas.sourceDelete(0);
assertEquals("__+___X__U_", deltas.toString());
deltas.sourceDelete(8);
assertEquals("__+___X___", deltas.toString());
deltas.sourceDelete(5);
assertEquals("__+______", deltas.toString());
deltas.targetInsert(2, 6, null);
assertEquals("__+++++______", deltas.toString());
deltas.sourceInsert(8);
assertEquals("__+++++_______", deltas.toString());
}