Browse Source

Fix unit test broken with previous check-in

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1829640 13f79535-47bb-0310-9956-ffa450edef68
pull/107/merge
Dominik Stadler 6 years ago
parent
commit
2d7fdbc4bc
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java

+ 2
- 1
src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java View File

@@ -331,7 +331,8 @@ public abstract class BaseTestWorkbook {
public void testSetActiveCell() throws IOException {
try (Workbook wb = _testDataProvider.createWorkbook()) {
Sheet sheet = wb.createSheet("new sheet");
assertEquals(new CellAddress("A1"), sheet.getActiveCell());
final CellAddress initialActiveCell = sheet.getActiveCell();
assertTrue(initialActiveCell == null || new CellAddress("A1").equals(initialActiveCell));
sheet.setActiveCell(new CellAddress("E11"));
assertEquals(new CellAddress("E11"), sheet.getActiveCell());


Loading…
Cancel
Save