public void testGetLastCellNum() { assertEquals(-1, valueRecord.getLastCellNum()); valueRecord.insertCell(newBlankRecord(2, 2)); assertEquals(2, valueRecord.getLastCellNum()); valueRecord.insertCell(newBlankRecord(3, 3)); assertEquals(3, valueRecord.getLastCellNum()); // Note: Removal doesn't currently reset the last column. It probably should but it doesn't. valueRecord.removeCell(newBlankRecord(3, 3)); assertEquals(3, valueRecord.getLastCellNum()); }
public DimensionsRecord createDimensions() { DimensionsRecord result = new DimensionsRecord(); result.setFirstRow(_firstrow); result.setLastRow(_lastrow); result.setFirstCol((short) _valuesAgg.getFirstCellNum()); result.setLastCol((short) _valuesAgg.getLastCellNum()); return result; }