Skip to content

Commit 166720b

Browse files
committed
Make getSql public for better testability
1 parent a10b8b7 commit 166720b

File tree

7 files changed

+8
-6
lines changed

7 files changed

+8
-6
lines changed

src/main/java/org/utplsql/api/testRunner/AbstractTestRunnerStatement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public AbstractTestRunnerStatement(TestRunnerOptions options, Connection conn) t
3232
createStatement();
3333
}
3434

35-
protected abstract String getSql();
35+
public abstract String getSql();
3636

3737
protected int createStatement() throws SQLException {
3838

src/main/java/org/utplsql/api/testRunner/ActualTestRunnerStatement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public ActualTestRunnerStatement(TestRunnerOptions options, Connection connectio
1919
}
2020

2121
@Override
22-
protected String getSql() {
22+
public String getSql() {
2323
// Workaround because Oracle JDBC doesn't support passing boolean to stored procedures.
2424
String colorConsoleStr = Boolean.toString(options.colorConsole);
2525
String failOnErrors = Boolean.toString(options.failOnErrors);

src/main/java/org/utplsql/api/testRunner/Pre303TestRunnerStatement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public Pre303TestRunnerStatement(TestRunnerOptions options, Connection conn) thr
1818
}
1919

2020
@Override
21-
protected String getSql() {
21+
public String getSql() {
2222
// Workaround because Oracle JDBC doesn't support passing boolean to stored procedures.
2323
String colorConsoleStr = Boolean.toString(options.colorConsole);
2424

src/main/java/org/utplsql/api/testRunner/Pre312TestRunnerStatement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public Pre312TestRunnerStatement(TestRunnerOptions options, Connection connectio
1818
}
1919

2020
@Override
21-
protected String getSql() {
21+
public String getSql() {
2222
// Workaround because Oracle JDBC doesn't support passing boolean to stored procedures.
2323
String colorConsoleStr = Boolean.toString(options.colorConsole);
2424
String failOnErrors = Boolean.toString(options.failOnErrors);

src/main/java/org/utplsql/api/testRunner/Pre317TestRunnerStatement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public Pre317TestRunnerStatement(TestRunnerOptions options, Connection connectio
1818
}
1919

2020
@Override
21-
protected String getSql() {
21+
public String getSql() {
2222
// Workaround because Oracle JDBC doesn't support passing boolean to stored procedures.
2323
String colorConsoleStr = Boolean.toString(options.colorConsole);
2424
String failOnErrors = Boolean.toString(options.failOnErrors);

src/main/java/org/utplsql/api/testRunner/TestRunnerStatement.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ public interface TestRunnerStatement extends AutoCloseable {
1111

1212
void execute() throws SQLException;
1313

14+
String getSql();
15+
1416
@Override
1517
void close() throws SQLException;
1618
}

src/test/java/org/utplsql/api/testRunner/TestRunnerStatementProviderIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class TestRunnerStatementProviderIT extends AbstractDatabaseTest {
2121

22-
TestRunnerOptions getCompletelyFilledOptions() {
22+
public static TestRunnerOptions getCompletelyFilledOptions() {
2323
TestRunnerOptions options = new TestRunnerOptions();
2424
options.pathList.add("path");
2525
options.reporterList.add(ReporterFactory.createEmpty().createReporter(CoreReporters.UT_DOCUMENTATION_REPORTER.name()));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy