@Test void reverse() { List<String> list = this.tool.getLinkedList(); list.add("one"); list.add("two"); list.add("three"); assertTrue(this.tool.reverse(list), "Failed to reverse list"); assertEquals("three", list.get(0), "List wasn't properly reversed"); assertEquals("two", list.get(1), "List wasn't properly reversed"); assertEquals("one", list.get(2), "List wasn't properly reversed"); List<String> readonly = this.tool.unmodifiable(list); assertFalse(this.tool.reverse(readonly), "Unmodifiable list wrongly reversed"); assertEquals("three", list.get(0), "Unmodifiable list was changed"); assertFalse(this.tool.reverse(null), "Reversed a null list?"); }
public <E> boolean reverse(List<E> input) { return super.reverseModifiable(input); }
CollectionsTool extends CollectionTool { public <E> boolean reverse(List<E> input) { return super.reverseModifiable(input); } }
CollectionsTool extends CollectionTool { public <E> boolean reverse(List<E> input) { return super.reverseModifiable(input); }  }
CollectionsTool extends CollectionTool { public <E> boolean reverse(List<E> input) { return super.reverseModifiable(input); }  boolean reverse(List<E> input); boolean sort(List<E> input); }
CollectionsTool extends CollectionTool { public <E> boolean reverse(List<E> input) { return super.reverseModifiable(input); }  boolean reverse(List<E> input); boolean sort(List<E> input);  }