Ejemplo n.º 1
0
  /**
   * Verify that for the max and min values of the 'id' column, the values for a given column meet
   * the expected values.
   */
  private void assertColMinAndMax(String colName, ColumnGenerator generator) throws SQLException {
    Connection conn = getConnection();
    int minId = getMinRowId(conn);
    int maxId = getMaxRowId(conn);

    LOG.info("Checking min/max for column " + colName + " with type " + generator.getType());

    String expectedMin = generator.getVerifyText(minId);
    String expectedMax = generator.getVerifyText(maxId);

    assertColValForRowId(minId, colName, expectedMin);
    assertColValForRowId(maxId, colName, expectedMax);
  }