poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1225098 - /poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java
Date Wed, 28 Dec 2011 05:29:02 GMT
Author: nick
Date: Wed Dec 28 05:29:01 2011
New Revision: 1225098

URL: http://svn.apache.org/viewvc?rev=1225098&view=rev
Log:
Add disabled tests for custom formats

Modified:
    poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java

Modified: poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java?rev=1225098&r1=1225097&r2=1225098&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/ss/usermodel/TestDataFormatter.java Wed Dec 28
05:29:01 2011
@@ -415,4 +415,21 @@ public class TestDataFormatter extends T
         assertEquals(" -   ", dfUS.formatRawCellContents(0.0, -1, "_-* #,##0.00_-;-* #,##0.00_-;_-*
\"-\"??_-;_-@_-"));
         assertEquals(" $-   ", dfUS.formatRawCellContents(0.0, -1, "_-$* #,##0.00_-;-$* #,##0.00_-;_-$*
\"-\"??_-;_-@_-"));
     }
+
+    /**
+     * TODO Fix these so that they work
+     */
+    public void DISABLEDtestCustomFormats() {
+       DataFormatter dfUS = new DataFormatter(Locale.US, true);
+       String fmt;
+       
+       fmt = "\"At\" H:MM AM/PM \"on\" DDDD MMMM D\",\" YYYY";
+       assertEquals(
+             "At 4:20 AM on Thursday May 17, 2007",
+             dfUS.formatRawCellContents(39219.1805636921, -1, fmt)
+       );
+       
+       fmt = "0 \"dollars and\" .00 \"cents\"";
+       assertEquals("19 dollars and .99 cents", dfUS.formatRawCellContents(19.99, -1, fmt));
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message