LineMapper { void appendDelete(int numLines) { int origLineA = lineA; lineA += numLines; int aAheadOfB = lineA - lineB; lineMapAtoB.add(new LineGap(origLineA, lineA - 1, -aAheadOfB)); lineMapBtoA.add(new LineGap(lineB, -1, aAheadOfB)); } LineMapper();   }
@Test public void appendDelete() { LineMapper mapper = new LineMapper(); mapper.appendDelete(10); assertEquals(10, mapper.getLineA()); assertEquals(0, mapper.getLineB()); }