| org.apache.commons.collections.comparators.AbstractTestComparator org.apache.commons.collections.comparators.TestReverseComparator
TestReverseComparator | public class TestReverseComparator extends AbstractTestComparator (Code) | | Tests for ReverseComparator.
version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $ author: Unknown |
TestReverseComparator | public TestReverseComparator(String testName)(Code) | | |
getComparableObjectsOrdered | public List getComparableObjectsOrdered()(Code) | | |
makeComparator | public Comparator makeComparator()(Code) | | For the purposes of this test, return a
ReverseComparator that wraps the java.util.Collections.reverseOrder()
Comparator. The resulting comparator should
sort according to natural Order. (Note: we wrap
a Comparator taken from the JDK so that we can
save a "canonical" form in CVS.
Comparator that returns "natural" order |
suite | public static Test suite()(Code) | | |
testSerializeDeserializeThenCompare | public void testSerializeDeserializeThenCompare() throws Exception(Code) | | Override this inherited test since Collections.reverseOrder
doesn't adhere to the "soft" Comparator contract, and we've
already "cannonized" the comparator returned by makeComparator.
|
|
|