aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2018-12-31 09:05:05 +0000
committerDominik Stadler <centic@apache.org>2018-12-31 09:05:05 +0000
commitdfb613a0594265f8298e12834ae2dbfc725138be (patch)
tree97b75b73ac7cc75ed049f6804120dbfc11f1865d /src/testcases
parent85d6f81076332ddfd73e124644ceec110d855d53 (diff)
downloadpoi-dfb613a0594265f8298e12834ae2dbfc725138be.tar.gz
poi-dfb613a0594265f8298e12834ae2dbfc725138be.zip
Adjust test for bug 60460 to also run fine on Windows
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1850022 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases')
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
index 333704fd82..32ec25bcf5 100644
--- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
+++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
@@ -2446,10 +2446,6 @@ public final class TestBugs extends BaseTestBugzillaIssues {
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 BaseTestBugzillaIssues {
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());