diff --git a/model-lddtool/pom.xml b/model-lddtool/pom.xml index 277f027d..1d0ef2db 100644 --- a/model-lddtool/pom.xml +++ b/model-lddtool/pom.xml @@ -197,7 +197,7 @@ gov.nasa.pds validate - 3.6.0-SNAPSHOT + 3.7.0-SNAPSHOT test diff --git a/model-lddtool/src/test/java/cucumber/ValidateStepDefs.java b/model-lddtool/src/test/java/cucumber/ValidateStepDefs.java index 9f4f5f98..6a3e8b4e 100644 --- a/model-lddtool/src/test/java/cucumber/ValidateStepDefs.java +++ b/model-lddtool/src/test/java/cucumber/ValidateStepDefs.java @@ -211,9 +211,7 @@ public void execute_a_validate_command(String commandArgs) { // [], we have to // convert this.commandArgs into an array of strings. String[] args = this.resolveArgumentStrings(commandArgs); - this.launcher.processMain(args); - this.tearDown(); // Will do the compare of the report in another function. @@ -248,8 +246,9 @@ public void produced_output_from_validate_command_should_be_similar_to_reference + this.refOutputValue); // Compare the count from this test with the this.messageCount from test table. - assertEquals(count, this.messageCount, this.messageText + " " + reportJson.toString()); - + assertEquals(this.messageCount, count, this.messageText + " " + reportJson.toString()); + assertEquals(0, this.getMessageCountBasedOnProblemType("INTERNAL_ERROR,ARRAY_INTERNAL_ERROR,TABLE_INTERNAL_ERROR", reportJson), + "Required that internal errors do not occur."); } catch (ExitException e) { assertEquals(0, e.status, "Exit status"); } catch (Exception e) { diff --git a/model-lddtool/src/test/resources/features/validate.feature b/model-lddtool/src/test/resources/features/validate.feature index 361a7df0..6f09385b 100644 --- a/model-lddtool/src/test/resources/features/validate.feature +++ b/model-lddtool/src/test/resources/features/validate.feature @@ -20,7 +20,7 @@ Feature: Running integration tests for validate module | "NASA-PDS/pds4-information-model#795 Test Schematron 2" | "github795b" | 1 | "1 errors expected" | "SCHEMATRON_ERROR" | "--target {resourceDir}/github795b/" | "" | - #| "NASA-PDS/pds4-information-model#797 Test Schematron 1" | "github797" | 3 | "3 errors expected" | "SCHEMATRON_ERROR" | "--target {resourceDir}/github797/test_label1_FAIL.xml {resourceDir}/github797/u5.xml" | "PDS4_GEOM_IngestLDD.xml" | + | "NASA-PDS/pds4-information-model#797 Test Schematron 1" | "github797" | 3 | "3 errors expected" | "SCHEMATRON_ERROR" | "--target {resourceDir}/github797/test_label1_FAIL.xml {resourceDir}/github797/u5.xml" | "PDS4_GEOM_IngestLDD.xml" |