From bc7e22d0d606cb747e67c3d6c2c3d95fcaff4268 Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Wed, 13 Sep 2017 20:55:47 +0000 Subject: [PATCH] ICU-13348 Removed unused irregular test files that had never been used since ICU4J 4.4. X-SVN-Rev: 40400 --- .../com/ibm/icu/dev/test/util/TestData_en.jpp | 43 ------------- .../test/util/TestDefaultPackageLoading.jpp | 62 ------------------- 2 files changed, 105 deletions(-) delete mode 100644 icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/TestData_en.jpp delete mode 100644 icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/TestDefaultPackageLoading.jpp diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/TestData_en.jpp b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/TestData_en.jpp deleted file mode 100644 index 572ed540ea..0000000000 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/TestData_en.jpp +++ /dev/null @@ -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; - } -} diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/TestDefaultPackageLoading.jpp b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/TestDefaultPackageLoading.jpp deleted file mode 100644 index a0b480d0e4..0000000000 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/TestDefaultPackageLoading.jpp +++ /dev/null @@ -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()); - } - } - -}