diff options
author | Vladislav Galas <gallon@apache.org> | 2019-01-02 22:08:38 +0000 |
---|---|---|
committer | Vladislav Galas <gallon@apache.org> | 2019-01-02 22:08:38 +0000 |
commit | e501d4015df167e69688635df8092f993d5a9094 (patch) | |
tree | 31a3f35cc2b0c94192be7072f53a97f83d2cc7d0 /src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetUpdateArrayFormulas.java | |
parent | 3aec436a34da31b247a1449225c75f3157a1bf63 (diff) | |
download | poi-e501d4015df167e69688635df8092f993d5a9094.tar.gz poi-e501d4015df167e69688635df8092f993d5a9094.zip |
Bug 62828: CellReference(Cell) now initializes sheet name.
Changed CellReference to CellAddress in XSSFHyperlink because it is what it should return.
Updated all relevant tests, added a test for CellReference(Cell).
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1850210 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetUpdateArrayFormulas.java')
-rw-r--r-- | src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetUpdateArrayFormulas.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetUpdateArrayFormulas.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetUpdateArrayFormulas.java index a076c1685c..9b20c6b3c6 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetUpdateArrayFormulas.java +++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetUpdateArrayFormulas.java @@ -86,7 +86,7 @@ public abstract class BaseTestSheetUpdateArrayFormulas { cell.getArrayFormulaRange(); fail("expected exception"); } catch (IllegalStateException e){ - assertEquals("Cell A1 is not part of an array formula.", e.getMessage()); + assertEquals("Cell Sheet0!A1 is not part of an array formula.", e.getMessage()); } // row 3 does not yet exist @@ -177,14 +177,14 @@ public abstract class BaseTestSheetUpdateArrayFormulas { cell.getArrayFormulaRange(); fail("expected exception"); } catch (IllegalStateException e){ - assertEquals("Cell A1 is not part of an array formula.", e.getMessage()); + assertEquals("Cell Sheet0!A1 is not part of an array formula.", e.getMessage()); } try { sheet.removeArrayFormula(cell); fail("expected exception"); } catch (IllegalArgumentException e){ - assertEquals("Cell A1 is not part of an array formula.", e.getMessage()); + assertEquals("Cell Sheet0!A1 is not part of an array formula.", e.getMessage()); } workbook.close(); @@ -221,7 +221,7 @@ public abstract class BaseTestSheetUpdateArrayFormulas { fail("expected exception"); } catch (IllegalArgumentException e){ String ref = new CellReference(acell).formatAsString(); - assertEquals("Cell "+ref+" is not part of an array formula.", e.getMessage()); + assertEquals("Cell " + ref + " is not part of an array formula.", e.getMessage()); } } |