Package org.dbunit.dataset

Examples of org.dbunit.dataset.NoSuchColumnException


  public Object getValue(int row, String column) throws DataSetException {
    if (row < 0 || row >= data.size()) {
      throw new RowOutOfBoundsException(); // !!! DbUnit uses this exception to detect end of iteration over rows!!!
    }
    if (!columnNameIndexes.containsKey(column)) {
      throw new NoSuchColumnException("No such column [" + column + "]");
    }
    int columnIndex = columnNameIndexes.get(column);
    return data.get(row).get(columnIndex);
  }
View Full Code Here


   * @throws NoSuchColumnException If the column name is not known.
   */
  public int getColumnIndex(String column) throws NoSuchColumnException {
    column = column.toUpperCase();
    if (!columnNameIndexes.containsKey(column)) {
      throw new NoSuchColumnException("No such column [" + column + "]");
    }
    return columnNameIndexes.get(column);
  }
View Full Code Here

TOP

Related Classes of org.dbunit.dataset.NoSuchColumnException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.