File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed
main/java/org/utplsql/cli
test/java/org/utplsql/cli Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 8181 <version >${junit.jupiter.version} </version >
8282 <scope >test</scope >
8383 </dependency >
84+ <dependency >
85+ <groupId >org.hamcrest</groupId >
86+ <artifactId >hamcrest</artifactId >
87+ <version >2.1</version >
88+ <scope >test</scope >
89+ </dependency >
8490
8591 </dependencies >
8692
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ public int run() {
228228 return Cli .DEFAULT_ERROR_CODE ;
229229 }
230230
231- private TestRunner newTestRunner ( List <Reporter > reporterList ) {
231+ TestRunner newTestRunner ( List <Reporter > reporterList ) {
232232
233233 final File baseDir = new File ("" ).getAbsoluteFile ();
234234
Original file line number Diff line number Diff line change 11package org .utplsql .cli ;
22
33import org .junit .jupiter .api .Test ;
4+ import org .utplsql .api .TestRunnerOptions ;
45import org .utplsql .api .reporter .CoreReporters ;
56
7+ import java .util .ArrayList ;
68import java .util .List ;
79
10+ import static org .hamcrest .CoreMatchers .equalTo ;
11+ import static org .hamcrest .MatcherAssert .assertThat ;
812import static org .junit .jupiter .api .Assertions .*;
913
1014/**
@@ -92,4 +96,13 @@ void connectionString_asSysdba() {
9296 assertEquals ("sys as sysdba/mypass@connectstring/service" ,
9397 runCmd .getConnectionInfo ().getConnectionString ());
9498 }
99+
100+ @ Test
101+ void randomOrder_withoutSeed () {
102+ RunCommand runCmd = TestHelper .createRunCommand (TestHelper .getConnectionString (),
103+ "-random" );
104+
105+ TestRunnerOptions options = runCmd .newTestRunner (new ArrayList <>()).getOptions ();
106+ assertThat (options .randomTestOrder , equalTo (true ));
107+ }
95108}
You can’t perform that action at this time.
0 commit comments