]> granicus.if.org Git - icu/commitdiff
ICU-13348 Removed unused irregular test files that had never been used since ICU4J...
authorYoshito Umaoka <y.umaoka@gmail.com>
Wed, 13 Sep 2017 20:55:47 +0000 (20:55 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Wed, 13 Sep 2017 20:55:47 +0000 (20:55 +0000)
X-SVN-Rev: 40400

icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/TestData_en.jpp [deleted file]
icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/TestDefaultPackageLoading.jpp [deleted file]

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 (file)
index 572ed54..0000000
+++ /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 (file)
index a0b480d..0000000
+++ /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());
-        }
-    }
-    
-}