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
This commit is contained in:
Dominik Stadler 2018-04-20 09:45:28 +00:00
parent 15de4bf7a9
commit 2d7fdbc4bc
1 changed files with 2 additions and 1 deletions

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());