void (final AllTodosTreeBuilder all, final String[] strings) { AbstractTreeStructure allTreeStructure = all.getTodoTreeStructure(); TodoItemNode current = all.getFirstPointerForElement(allTreeStructure.getRootElement()); for (String string : strings) { assertNotNull(current); assertEquals(string, current.getTestPresentation()); current = all.getNextPointer(current); } assertNull(current); current = all.getLastPointerForElement(allTreeStructure.getRootElement()); for (int i = strings.length - 1; i >= 0; i--) { String string = strings[i]; assertNotNull(current); assertEquals(string, current.getTestPresentation()); current = all.getPreviousPointer(current); } assertNull(current); }