File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed
main/java/org/utplsql/api/testRunner
test/java/org/utplsql/api/testRunner Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments