poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1721902 - /poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataFormat.java
Date Mon, 28 Dec 2015 12:13:17 GMT
Author: onealj
Date: Mon Dec 28 12:13:17 2015
New Revision: 1721902

URL: http://svn.apache.org/viewvc?rev=1721902&view=rev
Log:
bug 58775: use assertNotBuiltInFormat

Modified:
    poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataFormat.java

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataFormat.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataFormat.java?rev=1721902&r1=1721901&r2=1721902&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataFormat.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFDataFormat.java Mon
Dec 28 12:13:17 2015
@@ -45,9 +45,11 @@ public final class TestXSSFDataFormat ex
 
         // now create a custom format with Pound (\u00a3)
         DataFormat dataFormat = wb.createDataFormat();
-        short customFmtIdx = dataFormat.getFormat("\u00a3##.00[Yellow]");
+        String customFmt = "\u00a3##.00[Yellow]";
+        assertNotBuiltInFormat(customFmt);
+        short customFmtIdx = dataFormat.getFormat(customFmt);
         assertTrue(customFmtIdx > BuiltinFormats.FIRST_USER_DEFINED_FORMAT_INDEX );
-        assertEquals("\u00a3##.00[Yellow]", dataFormat.getFormat(customFmtIdx));
+        assertEquals(customFmt, dataFormat.getFormat(customFmtIdx));
     }
     
     /**



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


Mime
View raw message