8000 completely filled TestRunnerOptions for testing purposes · utPLSQL/utPLSQL-java-api@7f52a33 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 7f52a33

Browse files
committed
completely filled TestRunnerOptions for testing purposes
1 parent de3311c commit 7f52a33

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

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

Lines changed: 22 additions & 1 deletion 10000
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

33
import org.junit.jupiter.api.Test;
44
import org.utplsql.api.AbstractDatabaseTest;
5+
import org.utplsql.api.FileMapperOptions;
56
import org.utplsql.api.TestRunnerOptions;
67
import org.utplsql.api.Version;
8+
import org.utplsql.api.reporter.CoreReporters;
9+
import org.utplsql.api.reporter.ReporterFactory;
710

811
import java.sql.SQLException;
12+
import java.util.Arrays;
913

1014
import static org.hamcrest.CoreMatchers.containsString;
1115
import static org.hamcrest.CoreMatchers.not;
@@ -15,8 +19,25 @@
1519

1620
class TestRunnerStatementProviderIT extends AbstractDatabaseTest {
1721

22+
TestRunnerOptions getCompletelyFilledOptions() {
23+
TestRunnerOptions options = new TestRunnerOptions();
24+
options.pathList.add("path");
25+
options.reporterList.add(ReporterFactory.createEmpty().createReporter(CoreReporters.UT_DOCUMENTATION_REPORTER.name()));
26+
options.coverageSchemes.add("APP");
27+
options.sourceMappingOptions = new FileMapperOptions(Arrays.asList("sourcePath"));
28+
options.testMappingOptions = new FileMapperOptions(Arrays.asList("testPath"));
29+
options.includeObjects.add("include1");
30+
options.excludeObjects.add("exclude1");
31+
options.failOnErrors = true;
32+
options.clientCharacterSet = "UTF8";
33+
options.randomTestOrder = true;
34+
options.randomTestOrderSeed = 123;
35+
options.tags.add("WIP");
36+
return options;
37+
}
38+
1839
AbstractTestRunnerStatement getTestRunnerStatementForVersion( Version version ) throws SQLException {
19-
return (AbstractTestRunnerStatement)TestRunnerStatementProvider.getCompatibleTestRunnerStatement(version, new TestRunnerOptions(), getConnection());
40+
return (AbstractTestRunnerStatement)TestRunnerStatementProvider.getCompatibleTestRunnerStatement(version, getCompletelyFilledOptions(), getConnection());
2041
}
2142

2243
@Test

0 commit comments

Comments
 (0)
0