@@ -65,6 +65,13 @@ private DynamicParameterList initParameterList() throws SQLException { | |||
| 65 | 65 | .addIfNotEmpty("a_coverage_schemes", options.coverageSchemes.toArray(), CustomTypes.UT_VARCHAR2_LIST, oracleConnection) | |
| 66 | 66 | .addIfNotEmpty("a_source_file_mappings", sourceMappings, CustomTypes.UT_FILE_MAPPINGS, oracleConnection) | |
| 67 | 67 | .addIfNotEmpty("a_test_file_mappings", testMappings, CustomTypes.UT_FILE_MAPPINGS, oracleConnection) | |
| 68 | + .addIfNotEmpty("a_include_objects", options.includeObjects.toArray(), CustomTypes.UT_VARCHAR2_LIST, oracleConnection) | ||
| 69 | + .addIfNotEmpty("a_exclude_objects", options.excludeObjects.toArray(), CustomTypes.UT_VARCHAR2_LIST, oracleConnection) | ||
| 70 | + .addIfNotEmpty("a_fail_on_errors", options.failOnErrors) | ||
| 71 | + .addIfNotEmpty("a_client_character_set", options.clientCharacterSet) | ||
| 72 | + .addIfNotEmpty("a_random_test_order", options.randomTestOrder) | ||
| 73 | + .addIfNotEmpty("a_random_test_order_seed", options.randomTestOrderSeed) | ||
| 74 | + .addIfNotEmpty("a_tags", options.getTagsAsString()) | ||
| 68 | 75 | .build(); | |
| 69 | 76 | } | |
| 70 | 77 | ||
@@ -87,6 +87,29 @@ void explore() throws SQLException { | |||
| 87 | 87 | verify(callableStatement).setArray(6, null); | |
| 88 | 88 | verify(oracleConnection, times(2)).createOracleArray(CustomTypes.UT_FILE_MAPPINGS, expectedFileMapping); | |
| 89 | 89 | ||
| 90 | + assertThat(testRunnerStatement.getSql(), containsString("a_include_objects => ?")); | ||
| 91 | + verify(callableStatement).setArray(7, null); | ||
| 92 | + verify(oracleConnection).createOracleArray(CustomTypes.UT_VARCHAR2_LIST, options.includeObjects.toArray()); | ||
| 93 | + | ||
| 94 | + assertThat(testRunnerStatement.getSql(), containsString("a_exclude_objects => ?")); | ||
| 95 | + verify(callableStatement).setArray(8, null); | ||
| 96 | + verify(oracleConnection).createOracleArray(CustomTypes.UT_VARCHAR2_LIST, options.includeObjects.toArray()); | ||
| 97 | + | ||
| 98 | + assertThat(testRunnerStatement.getSql(), containsString("a_fail_on_errors => (case ? when 1 then true else false)")); | ||
| 99 | + verify(callableStatement).setInt(9, 1); | ||
| 100 | + | ||
| 101 | + assertThat(testRunnerStatement.getSql(), containsString("a_client_character_set => ?")); | ||
| 102 | + verify(callableStatement).setString(10, "UTF8"); | ||
| 103 | + | ||
| 104 | + assertThat(testRunnerStatement.getSql(), containsString("a_random_test_order => (case ? when 1 then true else false)")); | ||
| 105 | + verify(callableStatement).setInt(11, 1); | ||
| 106 | + | ||
| 107 | + assertThat(testRunnerStatement.getSql(), containsString("a_random_test_order_seed => ?")); | ||
| 108 | + verify(callableStatement).setInt(12, 123); | ||
| 109 | + | ||
| 110 | + assertThat(testRunnerStatement.getSql(), containsString("a_tags => ?")); | ||
| 111 | + verify(callableStatement).setString(13, "WIP,long_running"); | ||
| 112 | + | ||
| 90 | 113 | ||
| 91 | 114 | } | |
| 92 | 115 | } | |
@@ -33,6 +33,7 @@ public static TestRunnerOptions getCompletelyFilledOptions() { | |||
| 33 | 33 | options.randomTestOrder = true; | |
| 34 | 34 | options.randomTestOrderSeed = 123; | |
| 35 | 35 | options.tags.add("WIP"); | |
| 36 | + options.tags.add("long_running"); | ||
| 36 | 37 | return options; | |
| 37 | 38 | } | |
| 38 | 39 | ||
0 commit comments