it/jdbc/src/main/java/org/apache/beam/it/jdbc/conditions/JDBCRowsCheck.java [49:69]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public CheckResult check() {
    long totalRows = resourceManager().getRowCount(tableId());
    if (totalRows < minRows()) {
      return new CheckResult(
          false, String.format("Expected %d rows but has only %d", minRows(), totalRows));
    }
    if (maxRows() != null && totalRows > maxRows()) {
      return new CheckResult(
          false, String.format("Expected up to %d rows but found %d", maxRows(), totalRows));
    }

    if (maxRows() != null) {
      return new CheckResult(
          true,
          String.format(
              "Expected between %d and %d rows and found %d", minRows(), maxRows(), totalRows));
    }

    return new CheckResult(
        true, String.format("Expected at least %d rows and found %d", minRows(), totalRows));
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



it/google-cloud-platform/src/main/java/org/apache/beam/it/gcp/spanner/conditions/SpannerRowsCheck.java [48:68]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public CheckResult check() {
    long totalRows = resourceManager().getRowCount(tableId());
    if (totalRows < minRows()) {
      return new CheckResult(
          false, String.format("Expected %d rows but has only %d", minRows(), totalRows));
    }
    if (maxRows() != null && totalRows > maxRows()) {
      return new CheckResult(
          false, String.format("Expected up to %d rows but found %d", maxRows(), totalRows));
    }

    if (maxRows() != null) {
      return new CheckResult(
          true,
          String.format(
              "Expected between %d and %d rows and found %d", minRows(), maxRows(), totalRows));
    }

    return new CheckResult(
        true, String.format("Expected at least %d rows and found %d", minRows(), totalRows));
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



