You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2018/04/20 09:45:28 UTC
svn commit: r1829640 -
/poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java
Author: centic
Date: Fri Apr 20 09:45:28 2018
New Revision: 1829640
URL: http://svn.apache.org/viewvc?rev=1829640&view=rev
Log:
Fix unit test broken with previous check-in
Modified:
poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java
Modified: poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java?rev=1829640&r1=1829639&r2=1829640&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestWorkbook.java Fri Apr 20 09:45:28 2018
@@ -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());
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org