99100101102103104105106107108
*/ private void add() { String value = input.value.get(); if (value != null && value.length() != 0) { todos.list.add(new Task(value)); input.clear(); } }
4142434445464748495051
} @Test public void remove() throws Exception { TodoTasks todos = new TodoTasks(); todos.list.add(new Task("now")); TodoUI w = Widget.of(TodoUI.class, todos); Item item = WidgetQuery.findFirst(w, Item.class); User.click(item.delete);