]> granicus.if.org Git - icu/commitdiff
ICU-9601 Skip test in ICU4J
authorMichael Ow <mow@svn.icu-project.org>
Wed, 10 Oct 2012 21:06:06 +0000 (21:06 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Wed, 10 Oct 2012 21:06:06 +0000 (21:06 +0000)
X-SVN-Rev: 32589

icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/TestConversion.java

index 7d9020ca5cc27c69ffdb5e9e802fe42ab2b16e3f..0e5f441577880cd6f6252eeab621856303a0aaf5 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2002-2010, International Business Machines Corporation and    *
+ * Copyright (C) 2002-2012, International Business Machines Corporation and    *
  * others. All Rights Reserved.                                                *
  *******************************************************************************
  *
@@ -125,8 +125,8 @@ public class TestConversion extends ModuleTest {
     private void TestFromUnicode(DataMap testcase, int caseNr) {
         
         ConversionCase cc = new ConversionCase();
-        
-        try {
+         
+       try {
             // retrieve test case data
             cc.caseNr = caseNr;
             cc.charset = ((ICUResourceBundle) testcase.getObject("charset")).getString();
@@ -143,6 +143,25 @@ public class TestConversion extends ModuleTest {
             errln("error parsing conversion/toUnicode test case " + cc.caseNr);
             return;
         }
+        
+        /*
+         * Skip the following data driven converter tests.
+         * These tests were added to the data driven conversion test in ICU
+         * to test direct-from-UTF-8 m:n Unicode:charset conversion.
+         * This feature is not in ICU4J.
+         * See #9601
+         */
+        String [] testsToSkip = {
+                "*test2"
+        };
+        for (int i = 0; i < testsToSkip.length; i++) {
+            if (cc.charset.equals(testsToSkip[i])) {
+                logln("");
+                logln("Skipping: " + cc.charset);
+                logln("...............................................");
+                return;
+            }
+        }
 
         // ----for debugging only
         logln("");