Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: re-adds test method verifyStatementsInFile #1181

Merged
merged 1 commit into from May 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -241,6 +241,27 @@ public void verifyStatementsInFile(String filename, Class<?> resourceClass) thro
this.verifyStatementsInFile(filename, resourceClass, false);
}

/**
* Reads sql statements from the specified file name and executes and verifies these. Statements
* that are preceded by an @EXPECT statement are verified against the @EXPECT specification.
* Statements without an @EXPECT statement will be executed and its result will be ignored, unless
* the statement throws an exception, which will fail the test case.
*
* @param providedConnection The {@link com.google.cloud.spanner.jdbc.Connection} to execute the
* statements against
* @param filename The file name containing the statements. Statements must be separated by a
* semicolon (;)
* @param resourceClass The class that defines the package where to find the input file
* @deprecated use {@link AbstractSqlScriptVerifier#verifyStatementsInFile(GenericConnection,
* String, Class)})} instead. This method does not allow parallel batch execution.
*/
@Deprecated
public void verifyStatementsInFile(
GenericConnection providedConnection, String filename, Class<?> resourceClass)
throws Exception {
this.verifyStatementsInFile(providedConnection, filename, resourceClass, false);
}

/**
* Reads sql statements from the specified file name and executes and verifies these. Statements
* that are preceded by an @EXPECT statement are verified against the @EXPECT specification.
Expand Down