poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1850022 - /poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
Date Mon, 31 Dec 2018 09:05:05 GMT
Author: centic
Date: Mon Dec 31 09:05:05 2018
New Revision: 1850022

URL: http://svn.apache.org/viewvc?rev=1850022&view=rev
Log:
Adjust test for bug 60460 to also run fine on Windows

Modified:
    poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java

Modified: poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java?rev=1850022&r1=1850021&r2=1850022&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java Mon Dec 31 09:05:05
2018
@@ -2446,10 +2446,6 @@ public final class TestBugs extends Base
         wb.close();
     }
 
-    /**
-     * Note - part of this test is still failing, see
-     * {@link TestUnfixedBugs#test49612()}
-     */
     @Test
     public void bug49612_part() throws IOException {
         HSSFWorkbook wb = HSSFTestDataSamples.openSampleWorkbook("49612.xls");
@@ -3144,7 +3140,9 @@ public final class TestBugs extends Base
 
         Name rangedName = wb.getAllNames().get(0);
         assertFalse(rangedName.isFunctionName());
-        assertEquals("'[\\\\HEPPC3/gt$/Teaching/Syn/physyn.xls]#REF'!$AK$70:$AL$70", rangedName.getRefersToFormula());
+        assertEquals("'[\\\\HEPPC3\\gt$\\Teaching\\Syn\\physyn.xls]#REF'!$AK$70:$AL$70",
+                // replace '/' to make test work equally on Windows and Linux
+                rangedName.getRefersToFormula().replace("/", "\\"));
 
         rangedName = wb.getAllNames().get(1);
         assertFalse(rangedName.isFunctionName());



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


Mime
View raw message