-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTestRunnerStatementProvider.java
More file actions
32 lines (27 loc) · 1.08 KB
/
TestRunnerStatementProvider.java
File metadata and controls
32 lines (27 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package org.utplsql.api.testRunner;
import org.utplsql.api.TestRunnerOptions;
import org.utplsql.api.Version;
import java.sql.Connection;
import java.sql.SQLException;
/**
* Provides different implementations of TestRunnerStatement based on the version of the database framework
*
* @author pesse
*/
public class TestRunnerStatementProvider {
private TestRunnerStatementProvider() {
throw new UnsupportedOperationException();
}
/**
* Returns the TestRunnerStatement-implementation compatible with the given databaseVersion.
*
* @param databaseVersion Version of the database framework
* @param options TestRunnerOptions to be used
* @param conn Active Connection
* @return TestRunnerStatment compatible with the database framework
* @throws SQLException
*/
public static TestRunnerStatement getCompatibleTestRunnerStatement(Version databaseVersion, TestRunnerOptions options, Connection conn) throws SQLException {
return DynamicTestRunnerStatement.forVersion(databaseVersion, conn, options, null);
}
}