ICU-3407 Linked up RandomCollator tests to TestAll and set a time bomb on it

X-SVN-Rev: 13802
This commit is contained in:
Syn Wee Quek 2003-11-21 04:22:59 +00:00
parent 68a8120c9d
commit d0a225deb0
2 changed files with 10 additions and 2 deletions

View File

@ -24,6 +24,7 @@ import com.ibm.icu.text.*;
import java.text.ParseException;
import java.io.*;
import java.util.Date;
import java.util.Random;
public class RandomCollator extends TestFmwk {
@ -46,6 +47,12 @@ public class RandomCollator extends TestFmwk {
public Shower LOG = new Shower();
public void TestRandom() throws IOException {
int year
= java.util.Calendar.getInstance().get(java.util.Calendar.YEAR);
if (year < 2004) {
System.out.println("\nTestRandom skipped for 2003");
return;
}
String fileName;
PrintWriter pw = BagFormatter.openUTF8Writer("", "RandomCollationTestLog.txt", BagFormatter.CONSOLE);
TestCollator tc = new TestCollator(chars);

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/dev/test/collator/TestAll.java,v $
* $Date: 2003/09/05 00:35:49 $
* $Revision: 1.5 $
* $Date: 2003/11/21 04:22:59 $
* $Revision: 1.6 $
*
*****************************************************************************************
*/
@ -46,6 +46,7 @@ public class TestAll extends TestGroup {
"CollationMiscTest",
"CollationChineseTest",
"CollationServiceTest",
"RandomCollator",
"com.ibm.icu.dev.test.search.SearchTest"
},
"All Collation Tests and Search Test"