@@ -70,14 +70,17 @@ private static Stream<Arguments> providesValues() {
70
70
List <Arguments > values = new ArrayList <>();
71
71
values .add (Arguments .of (new String [] {}, ExitCode .INVALID_COMMAND , noExpectedExceptionClass ));
72
72
values .add (Arguments .of (new String [] { "-h" }, ExitCode .OK , noExpectedExceptionClass ));
73
- values . add ( Arguments . of ( new String [] { "generate-schema" , "--help" }, ExitCode . INVALID_COMMAND ,
74
- noExpectedExceptionClass ));
75
- values . add ( Arguments . of ( new String [] { "validate" , "--help" }, ExitCode . OK , noExpectedExceptionClass ));
76
- values .add (Arguments .of (new String [] { "validate-content " , "--help" }, ExitCode .INVALID_COMMAND ,
73
+ values
74
+ . add ( Arguments . of ( new String [] { "generate-schema" , "--help" , "--show-stack-trace" }, ExitCode . INVALID_COMMAND ,
75
+ noExpectedExceptionClass ));
76
+ values .add (Arguments .of (new String [] { "validate" , "--help" , "--show-stack-trace" }, ExitCode .OK ,
77
77
noExpectedExceptionClass ));
78
+ values
79
+ .add (Arguments .of (new String [] { "validate-content" , "--help" , "--show-stack-trace" }, ExitCode .INVALID_COMMAND ,
80
+ noExpectedExceptionClass ));
78
81
values .add (Arguments .of (
79
82
new String [] { "validate" ,
80
- "../databind/src/test/resources/metaschema/fields_with_flags/metaschema.xml" },
83
+ "../databind/src/test/resources/metaschema/fields_with_flags/metaschema.xml" , "--show-stack-trace" },
81
84
ExitCode .OK , noExpectedExceptionClass ));
82
85
values .add (Arguments .of (new String [] { "generate-schema" , "--overwrite" , "--as" , "JSON" ,
83
86
"../databind/src/test/resources/metaschema/fields_with_flags/metaschema.xml" ,
@@ -113,7 +116,8 @@ void testQueryCommand() {
113
116
String [] args
114
117
= new String [] { "query" , "-m" , "../databind/src/test/resources/metaschema/fields_with_flags/metaschema.xml" ,
115
118
"-i" ,
116
- "../databind/src/test/resources/metaschema/fields_with_flags/example.json" , "3 + 4 + 5" };
119
+ "../databind/src/test/resources/metaschema/fields_with_flags/example.json" , "3 + 4 + 5" ,
120
+ "--show-stack-trace" };
117
121
CLI .runCli (args );
118
122
assertThat (logCaptor .getInfoLogs ()).containsExactly ("[12]" );
119
123
};
0 commit comments