diff --git a/metaschema-cli/src/test/java/gov/nist/secauto/metaschema/cli/CLITest.java b/metaschema-cli/src/test/java/gov/nist/secauto/metaschema/cli/CLITest.java index 7cfb05c2e..04619f564 100644 --- a/metaschema-cli/src/test/java/gov/nist/secauto/metaschema/cli/CLITest.java +++ b/metaschema-cli/src/test/java/gov/nist/secauto/metaschema/cli/CLITest.java @@ -179,17 +179,18 @@ private static Stream providesValues() { "../core/metaschema/schema/metaschema/metaschema-module-metaschema.xml", }, ExitCode.OK, NO_EXCEPTION_CLASS)); - add(Arguments.of( - new String[] { "validate-content", - "-m", - "src/test/resources/content/constraint-validation-custom-messages-module.xml", - "src/test/resources/content/constraint-validation-custom-messages.xml", - "--disable-schema-validation" - }, - ExitCode.OK, NO_EXCEPTION_CLASS));; + // add(Arguments.of( + // new String[] { "validate-content", + // "-m", + // "src/test/resources/content/215-module.xml", + // "src/test/resources/content/215.xml", + // "--disable-schema-validation", + // "--show-stack-trace" + // }, + // ExitCode.FAIL, NO_EXCEPTION_CLASS)); + ; } }; - return values.stream(); } diff --git a/metaschema-cli/src/test/resources/content/215-module.xml b/metaschema-cli/src/test/resources/content/215-module.xml new file mode 100644 index 000000000..3389951f4 --- /dev/null +++ b/metaschema-cli/src/test/resources/content/215-module.xml @@ -0,0 +1,17 @@ + + + Module for metaschema-framework/metaschema-java#215 + 0.1.0 + model215 + https://github.com/metaschema-framework/metaschema-java/issues/215 + https://github.com/metaschema-framework/metaschema-java/issues/215 + + parent + + + + + + \ No newline at end of file diff --git a/metaschema-cli/src/test/resources/content/215.xml b/metaschema-cli/src/test/resources/content/215.xml new file mode 100644 index 000000000..5b39c211f --- /dev/null +++ b/metaschema-cli/src/test/resources/content/215.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/metaschema-cli/src/test/resources/content/constraint-validation-custom-messages-module.xml b/metaschema-cli/src/test/resources/content/constraint-validation-custom-messages-module.xml deleted file mode 100644 index 7bd484421..000000000 --- a/metaschema-cli/src/test/resources/content/constraint-validation-custom-messages-module.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - Constraint Custom Validation Test - 0.1.0 - constraint-custom-validation-test - http://metaschema.dev/ns/metaschema/test/constraint-validation-custom-messages - http://metaschema.dev/ns/metaschema/test/constraint-validation-custom-messages - - Message Testing - Unit tests to address metaschema-framework/metaschema-java#215. - message-test - - - - - - - - - - - Custom message for example-custom-expect data - - - Custom message for example-custom-matches data - - - The value 'good' is the only allowed value for this field. - - - - - - \ No newline at end of file diff --git a/metaschema-cli/src/test/resources/content/constraint-validation-custom-messages.xml b/metaschema-cli/src/test/resources/content/constraint-validation-custom-messages.xml deleted file mode 100644 index f54d8418b..000000000 --- a/metaschema-cli/src/test/resources/content/constraint-validation-custom-messages.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - false - not-a-number - bad - false - not-a-number - \ No newline at end of file