ICU-13348 Removed unused irregular test files that had never been used since ICU4J 4.4.

X-SVN-Rev: 40400
This commit is contained in:
Yoshito Umaoka 2017-09-13 20:55:47 +00:00
parent 2613216b7b
commit bc7e22d0d6
2 changed files with 0 additions and 105 deletions

View File

@ -1,43 +0,0 @@
/*
*******************************************************************************
* Copyright (C) 2016 and later: Unicode, Inc. and others. *
* License & terms of use: http://www.unicode.org/copyright.html#License *
*******************************************************************************
*******************************************************************************
* Copyright (C) 2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
import java.util.ListResourceBundle;
import com.ibm.icu.impl.ICUListResourceBundle;
/*
* Eclipse expects the java files in a package-like directory structure to have a package declaration at the top of the file.
* To fool Eclipse this file has an "jpp" extension. The ant build script copies this file to the default package and renames it
* before building.
*/
/**
* @author ram
*/
public class TestData_en extends ListResourceBundle {
public TestData_en() {
}
private static Object[][] data = new Object[][] {
{
"aaa",
"testcircularalias/aab",
},
{
"aab",
"testcircularalias/aac",
},
{
"aac",
"testcircularalias/aaa",
}
};
protected Object[][] getContents(){
return data;
}
}

View File

@ -1,62 +0,0 @@
/*
*******************************************************************************
* Copyright (C) 2016 and later: Unicode, Inc. and others. *
* License & terms of use: http://www.unicode.org/copyright.html#License *
*******************************************************************************
*******************************************************************************
* Copyright (C) 2005, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
import java.util.MissingResourceException;
import com.ibm.icu.dev.test.TestFmwk;
import com.ibm.icu.util.UResourceBundle;
/*
* Eclipse expects the java files in a package-like directory structure to have a package declaration at the top of the file.
* To fool Eclipse this file has an "jpp" extension. The ant build script copies this file to the default package and renames it
* before building.
*/
/**
* @author ram
*/
public class TestDefaultPackageLoading extends TestFmwk{
public static void main(String[] args){
new TestDefaultPackageLoading().run(args);
}
public void TestResourceBundleLoading(){
try{
UResourceBundle bundle = UResourceBundle.getBundleInstance("TestData", "en");
String aaa = bundle.getString("aaa");
if(!aaa.equals("testcircularalias/aab")){
errln("Did not get the expected data");
}
}catch (MissingResourceException ex){
errln("could not load data "+ex.getMessage());
}
}
public void TestResFileLoading(){
try{
UResourceBundle bundle = UResourceBundle.getBundleInstance("", "te");
String aaa = bundle.getString("string_only_in_te");
if(!aaa.equals("TE")){
errln("Did not get the expected data");
}
}catch (MissingResourceException ex){
errln("could not load data "+ex.getMessage());
}
}
public void TestJB3767(){
try{
UResourceBundle bundle = UResourceBundle.getBundleInstance("com.ibm.icu.dev.data.TestData", "bge");
String aaa = bundle.getString("string_only_in_te");
if(!aaa.equals("TE")){
errln("Did not get the expected data");
}
logln("Got : " + bundle.getULocale().getName());
}catch (MissingResourceException ex){
errln("could not load data "+ex.getMessage());
}
}
}