10000 Start exploring possibilities for a dynamic TestRunner-Statement · utPLSQL/utPLSQL-java-api@156f2d9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 156f2d9

Browse files
committed
Start exploring possibilities for a dynamic TestRunner-Statement
1 parent 7f52a33 commit 156f2d9

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package org.utplsql.api.testRunner;
2+
3+
import org.utplsql.api.Version;
4+
5+
import java.sql.CallableStatement;
6+
import java.sql.Connection;
7+
import java.sql.SQLException;
8+
9+
public class DynamicTestRunnerStatement implements TestRunnerStatement {
10+
11+
private CallableStatement callableStatement;
12+
private final Connection connection;
13+
private final Version utPlSQlVersion;
14+
15+
private DynamicTestRunnerStatement( Version utPlSQlVersion, Connection connection ) {
16+
this.utPlSQlVersion = utPlSQlVersion;
17+
this.connection = connection;
18+
}
19+
20+
@Override
21+
public void execute() throws SQLException {
22+
// Implement
23+
}
24+
25+
@Override
26+
public void close() throws SQLException {
27+
if (callableStatement != null) {
28+
callableStatement.close();
29+
}
30+
}
31+
32+
public static DynamicTestRunnerStatement forVersion(Version version, Connection connection) {
33+
return new DynamicTestRunnerStatement(version, connection);
34+
}
35+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package org.utplsql.api.testRunner;
2+
3+
import org.junit.jupiter.api.Test;
4+
import org.utplsql.api.Version;
5+
6+
public class DynamicTestRunnerStatementTest {
7+
8+
@Test
9+
void explore() {
10+
DynamicTestRunnerStatement testRunnerStatement = DynamicTestRunnerStatement.forVersion(Version.V3_1_7, null);
11+
}
12+
}

0 commit comments

Comments
 (0)
0