From: Michael Ow Date: Wed, 10 Oct 2012 21:06:06 +0000 (+0000) Subject: ICU-9601 Skip test in ICU4J X-Git-Tag: milestone-59-0-1~3439 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a439d31c6ecc1e66684be11b7bff22f1423963e2;p=icu ICU-9601 Skip test in ICU4J X-SVN-Rev: 32589 --- diff --git a/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/TestConversion.java b/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/TestConversion.java index 7d9020ca5cc..0e5f4415778 100644 --- a/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/TestConversion.java +++ b/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/TestConversion.java @@ -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("");