Skip to content

Commit b21f651

Browse files
committed
Unit-Test to simulate passing all parameters that should be known
1 parent 038981f commit b21f651

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
package org.utplsql.cli;
2+
3+
import org.junit.jupiter.api.Test;
4+
import org.utplsql.api.TestRunner;
5+
6+
import java.util.ArrayList;
7+
8+
public class RunCommandArgumentsTest {
9+
10+
@Test
11+
public void allArgumentsAreRecognized() {
12+
RunCommand runCmd = TestHelper.createRunCommand(TestHelper.getConnectionString(),
13+
"-p=app",
14+
"-f=ut_sonar_test_reporter",
15+
"-o=sonar_result.xml",
16+
"-s",
17+
"-d",
18+
"-c",
19+
"--failure-exit-code=10",
20+
"-scc",
21+
"-t=60",
22+
"-exclude=app.betwnstr",
23+
"-include=app.betwnstr",
24+
"-source_path=src/test/resources/plsql/source",
25+
"-owner=app",
26+
"-regex_expression=\"*\"",
27+
"-type_mapping=\"sql=PACKAGE BODY\"",
28+
"-owner_subexpression=0",
29+
"-type_subexpression=0",
30+
"-name_subexpression=0",
31+
"-test_path=src/test/resources/plsql/test",
32+
"-owner=app",
33+
"-regex_expression=\"*\"",
34+
"-type_mapping=\"sql=PACKAGE BODY\"",
35+
"-owner_subexpression=0",
36+
"-type_subexpression=0",
37+
"-name_subexpression=0"
38+
);
39+
40+
TestRunner testRunner = runCmd.newTestRunner(new ArrayList<>());
41+
}
42+
}

0 commit comments

Comments
 (0)