summaryrefslogtreecommitdiffstats
path: root/text
diff options
context:
space:
mode:
Diffstat (limited to 'text')
-rw-r--r--text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatTest.java1
-rw-r--r--text/src/test/java/org/apache/harmony/text/tests/java/text/NumberFormatTest.java1
-rw-r--r--text/src/test/java/org/apache/harmony/text/tests/java/text/SimpleDateFormatTest.java15
3 files changed, 17 insertions, 0 deletions
diff --git a/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatTest.java b/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatTest.java
index a5252dc..a802ad8 100644
--- a/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatTest.java
+++ b/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatTest.java
@@ -985,6 +985,7 @@ public class DecimalFormatTest extends TestCase {
method = "equals",
args = {java.lang.Object.class}
)
+ @BrokenTest("Behaves differently between cts host and run-core-tests")
public void test_equalsLjava_lang_Object() {
DecimalFormat format = (DecimalFormat) DecimalFormat
.getInstance(Locale.US);
diff --git a/text/src/test/java/org/apache/harmony/text/tests/java/text/NumberFormatTest.java b/text/src/test/java/org/apache/harmony/text/tests/java/text/NumberFormatTest.java
index c1a582e..c047d3e 100644
--- a/text/src/test/java/org/apache/harmony/text/tests/java/text/NumberFormatTest.java
+++ b/text/src/test/java/org/apache/harmony/text/tests/java/text/NumberFormatTest.java
@@ -560,6 +560,7 @@ public class NumberFormatTest extends TestCase {
)
public void test_getCurrencyInstance() {
+ Locale.setDefault(Locale.US);
NumberFormat format = NumberFormat.getCurrencyInstance();
assertNotSame("Instance is null", null, format);
diff --git a/text/src/test/java/org/apache/harmony/text/tests/java/text/SimpleDateFormatTest.java b/text/src/test/java/org/apache/harmony/text/tests/java/text/SimpleDateFormatTest.java
index 286f080..f96410f 100644
--- a/text/src/test/java/org/apache/harmony/text/tests/java/text/SimpleDateFormatTest.java
+++ b/text/src/test/java/org/apache/harmony/text/tests/java/text/SimpleDateFormatTest.java
@@ -17,6 +17,7 @@
package org.apache.harmony.text.tests.java.text;
import dalvik.annotation.AndroidOnly;
+import dalvik.annotation.BrokenTest;
import dalvik.annotation.KnownFailure;
import dalvik.annotation.TestLevel;
import dalvik.annotation.TestTargetClass;
@@ -757,10 +758,12 @@ public class SimpleDateFormatTest extends junit.framework.TestCase {
args = {java.lang.String.class, java.text.ParsePosition.class}
)
@AndroidOnly("ICU specific...")
+ @BrokenTest("Different behavior between cts host and run-core-test")
public void test_parseLjava_lang_StringLjava_text_ParsePosition() {
// Test for method java.util.Date
// java.text.SimpleDateFormat.parse(java.lang.String,
// java.text.ParsePosition)
+
TestFormat test = new TestFormat(
"test_formatLjava_util_DateLjava_lang_StringBufferLjava_text_FieldPosition");
@@ -887,7 +890,19 @@ public class SimpleDateFormatTest extends junit.framework.TestCase {
test.parse("yyyyMMddHHmmss", "19990913171901", new GregorianCalendar(
1999, Calendar.SEPTEMBER, 13, 17, 19, 01).getTime(), 0, 14);
+ }
+ /**
+ * @tests java.text.SimpleDateFormat#parse(java.lang.String,
+ * java.text.ParsePosition)
+ */
+ @TestTargetNew(
+ level = TestLevel.COMPLETE,
+ method = "parse",
+ args = {java.lang.String.class, java.text.ParsePosition.class}
+ )
+ @AndroidOnly("ICU specific...")
+ public void test_parseLjava_lang_StringLjava_text_ParsePosition_2() {
Date d = new Date(1015822800000L);
SimpleDateFormat df = new SimpleDateFormat("", new Locale("en", "US"));
df.setTimeZone(TimeZone.getTimeZone("EST"));