ICU-1226 sort test method listing

X-SVN-Rev: 7160
This commit is contained in:
Alan Liu 2001-11-29 07:21:23 +00:00
parent e674eedfbf
commit 0d87f07d75
2 changed files with 24 additions and 6 deletions

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/dev/test/TestFmwk.java,v $
* $Date: 2001/11/28 22:51:46 $
* $Revision: 1.23 $
* $Date: 2001/11/29 07:21:23 $
* $Revision: 1.24 $
*
*****************************************************************************************
*/
@ -275,7 +275,16 @@ public class TestFmwk implements TestLog {
": [-verbose] [-nothrow] [-prompt] [test names]");
System.out.println("test names:");
Enumeration methodNames = testMethods.keys();
Enumeration methodNames = new SortedEnumeration(testMethods.keys(),
new Comparator() {
public int compare(Object a, Object b) {
return ((String)a).compareToIgnoreCase(
((String)b));
}
public boolean equals(Object o) {
return false;
}
});
while( methodNames.hasMoreElements() ) {
System.out.println("\t" + methodNames.nextElement() );
}

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/test/Attic/TestFmwk.java,v $
* $Date: 2001/11/28 22:51:46 $
* $Revision: 1.23 $
* $Date: 2001/11/29 07:21:23 $
* $Revision: 1.24 $
*
*****************************************************************************************
*/
@ -275,7 +275,16 @@ public class TestFmwk implements TestLog {
": [-verbose] [-nothrow] [-prompt] [test names]");
System.out.println("test names:");
Enumeration methodNames = testMethods.keys();
Enumeration methodNames = new SortedEnumeration(testMethods.keys(),
new Comparator() {
public int compare(Object a, Object b) {
return ((String)a).compareToIgnoreCase(
((String)b));
}
public boolean equals(Object o) {
return false;
}
});
while( methodNames.hasMoreElements() ) {
System.out.println("\t" + methodNames.nextElement() );
}