You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2014/01/21 19:45:08 UTC
svn commit: r1560137 -
/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java
Author: britter
Date: Tue Jan 21 18:45:08 2014
New Revision: 1560137
URL: http://svn.apache.org/r1560137
Log:
LANG-954: uncaught PatternSyntaxException in FastDateFormat - add test for the pattern in question; works at least with JDK 1.7.0_45
Modified:
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java
Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java?rev=1560137&r1=1560136&r2=1560137&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java (original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java Tue Jan 21 18:45:08 2014
@@ -250,6 +250,15 @@ public class FastDateFormatTest {
FastDateFormat.getDateTimeInstance(FastDateFormat.LONG, FastDateFormat.MEDIUM, TimeZone.getDefault(), Locale.getDefault()));
}
+ /**
+ * According to LANG-954 (https://issues.apache.org/jira/browse/LANG-954) this is broken in Android 2.1.
+ */
+ @Test
+ public void testLang954() throws Exception {
+ String pattern = "yyyy-MM-dd'T'";
+ FastDateFormat.getInstance(pattern);
+ }
+
@Test
public void testParseSync() throws InterruptedException {
final String pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS Z";