Modified testCatDir.

Prints an error with hints to set the system variable when a file not found.

X-SVN-Rev: 3438
This commit is contained in:
Syn Wee Quek 2001-01-18 21:58:05 +00:00
parent 3373366082
commit 8078d286c5
2 changed files with 20 additions and 4 deletions

View file

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/dev/test/lang/UCharacterTest.java,v $
* $Date: 2001/01/12 00:53:34 $
* $Revision: 1.2 $
* $Date: 2001/01/18 21:58:05 $
* $Revision: 1.3 $
*
*******************************************************************************
*/
@ -15,6 +15,7 @@ package com.ibm.icu.test.text;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.FileNotFoundException;
import com.ibm.test.TestFmwk;
import com.ibm.icu.text.UCharacter;
import com.ibm.icu.text.UCharacterCategoryEnum;
@ -493,6 +494,13 @@ public final class UCharacterTest extends TestFmwk
}
input.close();
}
catch (FileNotFoundException e)
{
errln("FAIL UnicodeData.txt not found\n" +
"Configure the system setting UnicodeData to the right path\n" +
"e.g. java -DUnicodeData=\"anyfile.dat\" " +
"com.ibm.icu.test.text.UCharacterTest");
}
catch (Exception e)
{
e.printStackTrace();

View file

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/test/text/Attic/UCharacterTest.java,v $
* $Date: 2001/01/12 00:53:34 $
* $Revision: 1.2 $
* $Date: 2001/01/18 21:58:05 $
* $Revision: 1.3 $
*
*******************************************************************************
*/
@ -15,6 +15,7 @@ package com.ibm.icu.test.text;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.FileNotFoundException;
import com.ibm.test.TestFmwk;
import com.ibm.icu.text.UCharacter;
import com.ibm.icu.text.UCharacterCategoryEnum;
@ -493,6 +494,13 @@ public final class UCharacterTest extends TestFmwk
}
input.close();
}
catch (FileNotFoundException e)
{
errln("FAIL UnicodeData.txt not found\n" +
"Configure the system setting UnicodeData to the right path\n" +
"e.g. java -DUnicodeData=\"anyfile.dat\" " +
"com.ibm.icu.test.text.UCharacterTest");
}
catch (Exception e)
{
e.printStackTrace();