Skip to content

Commit

Permalink
add internal error check
Browse files Browse the repository at this point in the history
  • Loading branch information
Al Niessner authored and Al Niessner committed Nov 7, 2024
1 parent db58ba4 commit a0f3650
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions model-lddtool/src/test/java/cucumber/ValidateStepDefs.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit a0f3650

Please sign in to comment.