assertEquals("\n ", blip.getContent());
}
public void testTextIteratorShiftInsertAfter() {
Blip blip = new Blip("blip1", "\nfoofoofoo", null, null, wavelet);
TextIterator iterator = new BlipIterator.TextIterator(blip, "foo", -1);
for (int i = 0; i < 3; ++i) {
assertTrue(iterator.hasNext());
Range range = iterator.next();
assertEquals(i * 6 + 1, range.getStart());
blip.setContent(blip.getContent().substring(0, range.getEnd()) + "foo" +
blip.getContent().substring(range.getEnd()));
iterator.shift(range.getEnd() - range.getStart() + 2);
}
assertFalse(iterator.hasNext());
assertEquals("\nfoofoofoofoofoofoo", blip.getContent());
}