Skip to content

Commit

Permalink
Repro test, modules, and doc instances for usnistgov#293
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-stein-nist committed Jan 26, 2024
1 parent 2846899 commit 7ae8524
Showing 1 changed file with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ private static Stream<Arguments> providesValues() {
List<Arguments> values = new ArrayList<>();
values.add(Arguments.of(new String[] {}, ExitCode.INVALID_COMMAND, noExpectedExceptionClass));
values.add(Arguments.of(new String[] { "-h" }, ExitCode.OK, noExpectedExceptionClass));
values.add(Arguments.of(new String[] { "generate-schema", "--help" }, ExitCode.INVALID_COMMAND,
values.add(Arguments.of(new String[] { "generate-schema" }, ExitCode.OK,
noExpectedExceptionClass));
values.add(Arguments.of(new String[] { "generate-schema", "--help" }, ExitCode.OK,
noExpectedExceptionClass));
values.add(Arguments.of(new String[] { "validate", "--help" }, ExitCode.OK, noExpectedExceptionClass));
values.add(Arguments.of(new String[] { "validate-content", "--help" }, ExitCode.INVALID_COMMAND,
Expand All @@ -79,17 +81,6 @@ private static Stream<Arguments> providesValues() {
values.add(Arguments.of(new String[] { "generate-schema", "--overwrite", "--as", "JSON",
"../databind/src/test/resources/metaschema/fields_with_flags/metaschema.xml",
"target/schema-test.json" }, ExitCode.OK, noExpectedExceptionClass));
values.add(Arguments.of(
new String[] { "validate-content", "--as=xml",
"-m=../databind/src/test/resources/metaschema/bad_index-has-key/metaschema.xml",
"../databind/src/test/resources/metaschema/bad_index-has-key/example.xml",
"--show-stack-trace" },
ExitCode.FAIL, noExpectedExceptionClass));
values.add(Arguments.of(
new String[] { "validate-content", "--as=json",
"-m=../databind/src/test/resources/metaschema/bad_index-has-key/metaschema.xml",
"../databind/src/test/resources/metaschema/bad_index-has-key/example.json", "--show-stack-trace" },
ExitCode.FAIL, noExpectedExceptionClass));
return values.stream();
}

Expand Down

0 comments on commit 7ae8524

Please sign in to comment.