Skip to content

Commit

Permalink
[WIP] Try complete fresh test files, investigate java.io.IOException
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-stein-gsa committed Nov 1, 2024
1 parent fc1b762 commit c28ac9b
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,17 +179,18 @@ private static Stream<Arguments> 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();
}

Expand Down
17 changes: 17 additions & 0 deletions metaschema-cli/src/test/resources/content/215-module.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<METASCHEMA xmlns="http://csrc.nist.gov/ns/oscal/metaschema/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://csrc.nist.gov/ns/oscal/metaschema/1.0 https://raw.githubusercontent.com/metaschema-framework/metaschema/0441e6d4c9bce5b6c40b4647148019e4f47bed08/schema/xml/metaschema.xsd">
<schema-name>Module for metaschema-framework/metaschema-java#215</schema-name>
<schema-version>0.1.0</schema-version>
<short-name>model215</short-name>
<namespace>https://github.com/metaschema-framework/metaschema-java/issues/215</namespace>
<json-base-uri>https://github.com/metaschema-framework/metaschema-java/issues/215</json-base-uri>
<define-assembly name="parent">
<root-name>parent</root-name>
<model>
<define-field name="example" min-occurs="1">
</define-field>
</model>
</define-assembly>
</METASCHEMA>
3 changes: 3 additions & 0 deletions metaschema-cli/src/test/resources/content/215.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<message-test xmlns="https://github.com/metaschema-framework/metaschema-java/issues/215">
</message-test>

This file was deleted.

This file was deleted.

0 comments on commit c28ac9b

Please sign in to comment.