-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathPre303TestRunnerStatement.java
More file actions
36 lines (30 loc) · 1.16 KB
/
Pre303TestRunnerStatement.java
File metadata and controls
36 lines (30 loc) · 1.16 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
33
34
35
36
package org.utplsql.api.testRunner;
import org.utplsql.api.TestRunnerOptions;
import java.sql.Connection;
import java.sql.SQLException;
/** TestRunner-Statement for Framework version before 3.0.3
* Does not know about failOnErrors option
*
* @author pesse
*/
class Pre303TestRunnerStatement extends AbstractTestRunnerStatement {
public Pre303TestRunnerStatement(TestRunnerOptions options, Connection conn) throws SQLException {
super(options, conn);
}
@Override
protected String getSql() {
// Workaround because Oracle JDBC doesn't support passing boolean to stored procedures.
String colorConsoleStr = Boolean.toString(options.colorConsole);
return "BEGIN " +
"ut_runner.run(" +
"a_paths => ?, " +
"a_reporters => ?, " +
"a_color_console => " + colorConsoleStr + ", " +
"a_coverage_schemes => ?, " +
"a_source_file_mappings => ?, " +
"a_test_file_mappings => ?, " +
"a_include_objects => ?, " +
"a_exclude_objects => ?); " +
"END;";
}
}