Skip to content

Commit

Permalink
[WIP] Save test draft from experiments while pairing for #241.
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-stein-nist committed Dec 6, 2023
1 parent 09237a6 commit fa35dbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class QueryCommand
Option.builder("i")
.hasArg()
.argName("FILE")
.required()
//.required()
.desc("metaschema content instance resource")
.build());
@NonNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ void testMetaschemaGenerateSchema() {
evaluateResult(CLI.runCli(args), ExitCode.OK);
}

@Test
void testExecuteCommandQueryOnly() {
String[] args = {"query", "-m", "module.xml", "-i", "content-instance.xml", "\"2 + 2\""};
evaluateResult(CLI.runCli(args), ExitCode.OK);
}

void evaluateResult(@NonNull ExitStatus status, @NonNull ExitCode expectedCode) {
status.generateMessage(true);
assertAll(
Expand Down

0 comments on commit fa35dbf

Please sign in to comment.