@Test public void testGetCellRef() { final Table t = PowerMock.createMock(Table.class); PowerMock.resetAll(); EasyMock.expect(t.getName()).andReturn("no problem"); PowerMock.replayAll(); final String cellAddress = this.util.newCellRef(t, 0, 0).toString(); PowerMock.verifyAll(); Assert.assertEquals("'no problem'.A1", cellAddress); }
public CellRef newCellRef(final String address) throws ParseException, IOException { return CellAddressParser.create(this.tableNameUtil).parse(address); }
PositionUtil { public CellRef newCellRef(final String address) throws ParseException, IOException { return CellAddressParser.create(this.tableNameUtil).parse(address); } }
PositionUtil { public CellRef newCellRef(final String address) throws ParseException, IOException { return CellAddressParser.create(this.tableNameUtil).parse(address); } PositionUtil(final TableNameUtil tableNameUtil); }
PositionUtil { public CellRef newCellRef(final String address) throws ParseException, IOException { return CellAddressParser.create(this.tableNameUtil).parse(address); } PositionUtil(final TableNameUtil tableNameUtil); static PositionUtil create(); CellRef newCellRef(final String address); CellRef newCellRef(final int row, final int col); CellRef newCellRef(final Table table, final int row, final int col); String toCellAddress(final int row, final int col); String toCellAddress(final Table table, final int row, final int col); String toRangeAddress(final int row1, final int col1, final int row2, final int col2); String toRangeAddress(final Table table, final int row1, final int col1, final int row2,
                                 final int col2); void checkTableName(final CharSequence name); }
PositionUtil { public CellRef newCellRef(final String address) throws ParseException, IOException { return CellAddressParser.create(this.tableNameUtil).parse(address); } PositionUtil(final TableNameUtil tableNameUtil); static PositionUtil create(); CellRef newCellRef(final String address); CellRef newCellRef(final int row, final int col); CellRef newCellRef(final Table table, final int row, final int col); String toCellAddress(final int row, final int col); String toCellAddress(final Table table, final int row, final int col); String toRangeAddress(final int row1, final int col1, final int row2, final int col2); String toRangeAddress(final Table table, final int row1, final int col1, final int row2,
                                 final int col2); void checkTableName(final CharSequence name); static final int ALPHABET_SIZE; static final int ORD_A; }