Fix method name spelling

bug 22844, from Janek Bogucki


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131123 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2003-08-31 14:37:48 +00:00
parent ced7246684
commit d416143503
2 changed files with 9 additions and 8 deletions

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/comparators/FixedOrderComparator.java,v 1.3 2003/08/31 12:54:49 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/comparators/FixedOrderComparator.java,v 1.4 2003/08/31 14:37:48 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -83,10 +83,11 @@ import java.util.Map;
* multiple comparisons after all the setup operations are complete.
*
* @since Commons Collections 3.0
* @version $Revision: 1.3 $ $Date: 2003/08/31 12:54:49 $
* @version $Revision: 1.4 $ $Date: 2003/08/31 14:37:48 $
*
* @author David Leppik
* @author Stephen Colebourne
* @author Janek Bogucki
*/
public class FixedOrderComparator implements Comparator {
@ -192,7 +193,7 @@ public class FixedOrderComparator implements Comparator {
/**
* Gets the behavior for comparing unknown objects.
*/
public int getUnkownObjectBehavior() {
public int getUnknownObjectBehavior() {
return unknownObjectBehavior;
}

View File

@ -1,7 +1,7 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/comparators/TestFixedOrderComparator.java,v 1.1 2003/04/13 17:37:26 scolebourne Exp $
* $Revision: 1.1 $
* $Date: 2003/04/13 17:37:26 $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/comparators/TestFixedOrderComparator.java,v 1.2 2003/08/31 14:37:48 scolebourne Exp $
* $Revision: 1.2 $
* $Date: 2003/08/31 14:37:48 $
*
* ====================================================================
*
@ -207,11 +207,11 @@ public class TestFixedOrderComparator extends TestCase {
} catch (IllegalArgumentException e) {
// success-- ignore
}
assertEquals(FixedOrderComparator.UNKNOWN_THROW_EXCEPTION, comparator.getUnkownObjectBehavior());
assertEquals(FixedOrderComparator.UNKNOWN_THROW_EXCEPTION, comparator.getUnknownObjectBehavior());
comparator = new FixedOrderComparator(topCities);
comparator.setUnknownObjectBehavior(FixedOrderComparator.UNKNOWN_BEFORE);
assertEquals(FixedOrderComparator.UNKNOWN_BEFORE, comparator.getUnkownObjectBehavior());
assertEquals(FixedOrderComparator.UNKNOWN_BEFORE, comparator.getUnknownObjectBehavior());
LinkedList keys = new LinkedList(Arrays.asList(topCities));
keys.addFirst("Minneapolis");
assertComparatorYieldsOrder(keys.toArray(new String[0]), comparator);