File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
main/java/org/utplsql/cli
test/java/org/utplsql/cli Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 11package org .utplsql .cli ;
22
3+ import org .slf4j .Logger ;
4+ import org .slf4j .LoggerFactory ;
35import picocli .CommandLine ;
46
57import java .util .List ;
68
79public class Cli {
810
11+ private static final Logger logger = LoggerFactory .getLogger (Cli .class );
12+
913 static final int DEFAULT_ERROR_CODE = 1 ;
1014
1115 public static void main (String [] args ) {
@@ -17,6 +21,8 @@ public static void main(String[] args) {
1721
1822 static int runPicocliWithExitCode (String [] args ) {
1923
24+ logger .debug ("Args: " +String .join (", " , args ));
25+
2026 CommandLine commandLine = new CommandLine (UtplsqlPicocliCommand .class );
2127 commandLine .setTrimQuotes (true );
2228
Original file line number Diff line number Diff line change @@ -240,4 +240,13 @@ void testFileMappingWithoutDetails() throws Exception {
240240 assertNull ( testMapperConfig .getTypeSubexpression ());
241241 assertNull ( testMapperConfig .getNameSubexpression ());
242242 }
243+
244+ @ Test
245+ void negatedTag () throws Exception {
246+ RunCommandConfig config = parseForConfig ("run" ,
247+ TestHelper .getConnectionString (),
248+ "--tags=\" -dontwantit\" " );
249+
250+ assertThat (config .getTags (), hasItemInArray ("-dontwantit" ) );
251+ }
243252}
You can’t perform that action at this time.
0 commit comments