]> source.dussan.org Git - poi.git/commitdiff
Fix unit test broken with previous check-in
authorDominik Stadler <centic@apache.org>
Fri, 20 Apr 2018 09:45:28 +0000 (09:45 +0000)
committerDominik Stadler <centic@apache.org>
Fri, 20 Apr 2018 09:45:28 +0000 (09:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1829640 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java

index 5d28a888f0eecb48a00c9811dc72d348a3009d44..8e60c70aeb28fd3b956cbecc52e3950424a77283 100644 (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());