Skip to content

Commit c0ca8cd

Browse files
committed
Remove helper comments
1 parent e1b7dd3 commit c0ca8cd

File tree

2 files changed

+2
-39
lines changed

2 files changed

+2
-39
lines changed

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

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,32 +32,14 @@ private DynamicTestRunnerStatement( Version utPlSQlVersion, OracleConnection con
3232
}
3333

3434
private DynamicParameterList initParameterList() throws SQLException {
35-
/*
36-
"BEGIN " +
37-
"ut_runner.run(" +
38-
"a_paths => ?, " +
39-
"a_reporters => ?, " +
40-
"a_color_console => " + colorConsoleStr + ", " +
41-
"a_coverage_schemes => ?, " +
42-
"a_source_file_mappings => ?, " +
43-
"a_test_file_mappings => ?, " +
44-
"a_include_objects => ?, " +
45-
"a_exclude_objects => ?, " +
46-
"a_fail_on_errors => " + failOnErrors + ", " +
47-
"a_client_character_set => ?, " +
48-
"a_random_test_order => " + randomExecutionOrder + ", " +
49-
"a_random_test_order_seed => ?, "+
50-
"a_tags => ?"+
51-
"); " +
52-
"END;";
53-
*/
5435

5536
Object[] sourceMappings = (options.sourceMappingOptions!=null)
5637
?FileMapper.buildFileMappingList(oracleConnection, options.sourceMappingOptions).toArray()
5738
:null;
5839
Object[] testMappings = (options.testMappingOptions!=null)
5940
?FileMapper.buildFileMappingList(oracleConnection, options.testMappingOptions).toArray()
6041
:null;
42+
6143
return DynamicParameterList.builder()
6244
.addIfNotEmpty("a_paths", options.pathList.toArray(), CustomTypes.UT_VARCHAR2_LIST, oracleConnection)
6345
.addIfNotEmpty("a_reporters", options.reporterList.toArray(), CustomTypes.UT_REPORTERS, oracleConnection)

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

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,7 @@ void explore() throws SQLException {
4747
DynamicTestRunnerStatement testRunnerStatement = DynamicTestRunnerStatement
4848
.forVersion(Version.V3_1_7, oracleConnection, options, callableStatement);
4949

50-
/*
51-
"ut_runner.run(" +
52-
"a_paths => ?, " +
53-
"a_reporters => ?, " +
54-
"a_color_console => " + colorConsoleStr + ", " +
55-
"a_coverage_schemes => ?, " +
56-
"a_source_file_mappings => ?, " +
57-
"a_test_file_mappings => ?, " +
58-
"a_include_objects => ?, " +
59-
"a_exclude_objects => ?, " +
60-
"a_fail_on_errors => " + failOnErrors + ", " +
61-
"a_client_character_set => ?, " +
62-
"a_random_test_order => " + randomExecutionOrder + ", " +
63-
"a_random_test_order_seed => ?, "+
64-
"a_tags => ?"+
65-
"); " +
66-
"END;";
67-
*/
50+
// Assert all parameters are set appropriately
6851
assertThat(testRunnerStatement.getSql(), containsString("a_paths => ?"));
6952
verify(callableStatement).setArray(1, null);
7053
verify(oracleConnection).createOracleArray(CustomTypes.UT_VARCHAR2_LIST, options.pathList.toArray());
@@ -109,7 +92,5 @@ void explore() throws SQLException {
10992

11093
assertThat(testRunnerStatement.getSql(), containsString("a_tags => ?"));
11194
verify(callableStatement).setString(13, "WIP,long_running");
112-
113-
11495
}
11596
}

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