poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dno...@apache.org
Subject svn commit: r1685104 - /poi/trunk/src/testcases/org/apache/poi/ss/util/TestAreaReference.java
Date Fri, 12 Jun 2015 15:29:20 GMT
Author: dnorth
Date: Fri Jun 12 15:29:20 2015
New Revision: 1685104

URL: http://svn.apache.org/r1685104
Log:
Add explicit test for NPE only caught by other tests. Test '97 fallback behaviour generally.

https://bz.apache.org/bugzilla/show_bug.cgi?id=56328

Modified:
    poi/trunk/src/testcases/org/apache/poi/ss/util/TestAreaReference.java

Modified: poi/trunk/src/testcases/org/apache/poi/ss/util/TestAreaReference.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/ss/util/TestAreaReference.java?rev=1685104&r1=1685103&r2=1685104&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/ss/util/TestAreaReference.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/ss/util/TestAreaReference.java Fri Jun 12 15:29:20
2015
@@ -47,4 +47,9 @@ public class TestAreaReference extends T
         assertEquals(1, newStyle.getLastCell().getRow());
     }
 
+    @SuppressWarnings("deprecation") // deliberate test for behaviour if deprecated constructor
used.
+    public void testFallbackToExcel97IfVersionNotSupplied() {
+        assertTrue(new AreaReference("A:B").isWholeColumnReference());
+        assertTrue(AreaReference.isWholeColumnReference(null, new CellReference("A$1"), new
CellReference("A$" + SpreadsheetVersion.EXCEL97.getMaxRows())));
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message