|
| 1 | +package org.utplsql.cli.config; |
| 2 | + |
| 3 | + |
| 4 | +import java.beans.ConstructorProperties; |
| 5 | + |
| 6 | +public class TestRunnerConfig extends ConnectionConfig { |
| 7 | + |
| 8 | +private final String[] suitePaths; |
| 9 | +private final ReporterConfig[] reporters; |
| 10 | +private boolean outputAnsiColor = false; |
| 11 | +private final Integer failureExitCode; |
| 12 | +private boolean skipCompatibilityCheck = false; |
| 13 | +private final String[] includePackages; |
| 14 | +private final String[] excludePackages; |
| 15 | +private final String sourcePath; |
| 16 | +private final String testPath; |
| 17 | + |
| 18 | +@ConstructorProperties({"connectString", "suitePaths", "reporters", "outputAnsiColor", "failureExitCode", "skipCompatibilityCheck", "includePackages", "excludePackages", "sourcePath", "testPath"}) |
| 19 | +public TestRunnerConfig(String connectString, String[] suitePaths, ReporterConfig[] reporters, boolean outputAnsiColor, Integer failureExitCode, boolean skipCompatibilityCheck, String[] includePackages, String[] excludePackages, String sourcePath, String testPath) { |
| 20 | +super(connectString); |
| 21 | +this.suitePaths = suitePaths; |
| 22 | +this.reporters = reporters; |
| 23 | +this.outputAnsiColor = outputAnsiColor; |
| 24 | +this.failureExitCode = failureExitCode; |
| 25 | +this.skipCompatibilityCheck = skipCompatibilityCheck; |
| 26 | +this.includePackages = includePackages; |
| 27 | +this.excludePackages = excludePackages; |
| 28 | +this.sourcePath = sourcePath; |
| 29 | +this.testPath = testPath; |
| 30 | +} |
| 31 | + |
| 32 | +public String[] getSuitePaths() { |
| 33 | +return suitePaths; |
| 34 | +} |
| 35 | + |
| 36 | +public ReporterConfig[] getReporters() { |
| 37 | +return reporters; |
| 38 | +} |
| 39 | + |
| 40 | +public boolean isOutputAnsiColor() { |
| 41 | +return outputAnsiColor; |
| 42 | +} |
| 43 | + |
| 44 | +public Integer getFailureExitCode() { |
| 45 | +return failureExitCode; |
| 46 | +} |
| 47 | + |
| 48 | +public boolean isSkipCompatibilityCheck() { |
| 49 | +return skipCompatibilityCheck; |
| 50 | +} |
| 51 | + |
| 52 | +public String[] getIncludePackages() { |
| 53 | +return includePackages; |
| 54 | +} |
| 55 | + |
| 56 | +public String[] getExcludePackages() { |
| 57 | +return excludePackages; |
| 58 | +} |
| 59 | + |
| 60 | +public String getSourcePath() { |
| 61 | +return sourcePath; |
| 62 | +} |
| 63 | + |
| 64 | +public String getTestPath() { |
| 65 | +return testPath; |
| 66 | +} |
| 67 | +} |
0 commit comments