void () { myChildData = createChildData(myRootFile, "Test.java"); Change change = change(" int i; // TODO ? todo f", " int i2; // TODO ? todo f"); ContentRevision crlfRevision = new SimpleContentRevision(StringUtil.convertLineSeparators(ourOldText, "\r\n"), change.getBeforeRevision().getFile(), "1"); change = new Change(crlfRevision, change.getAfterRevision()); final TodoCheckinHandlerWorker worker = runTodoWorker(change); assertTrue(worker.getSkipped().isEmpty()); Set<TodoItem> addedOrEditedTodos = worker.getAddedOrEditedTodos(); Set<TodoItem> inChangedTodos = worker.getInChangedTodos(); assertEquals(0, addedOrEditedTodos.size()); assertEquals(1, inChangedTodos.size()); final TextRange textRange = inChangedTodos.iterator().next().getTextRange(); assertEquals("TODO ? todo f", textRange.substring(myNewText)); }