Skip to content

Commit

Permalink
fix java test error
Browse files Browse the repository at this point in the history
  • Loading branch information
issacto committed Jun 24, 2023
1 parent 9d1b53f commit 9ab9956
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,20 @@ public List<String> getParsedTestSuiteLines(BufferedReader testSuiteReader,
continue;
}

if (expectMockArguments
&& CobolVerbs.isStartOrEndCobolVerb(testSuiteToken)) {
if (expectMockArguments && !expectUsing
&& (CobolVerbs.isCobolVerb(testSuiteToken)|| testSuiteToken.equals("END-MOCK"))) {
// NEW: In this case we expected cobol verbs and stop counting arguments
// update the keyword as fieldname was assumed
// keyword = Keywords.getKeywordFor(testSuiteToken, false);
expectMockArguments = false;
expectUsing = false;
handleEndOfMockStatement(testSuiteReader, testSuiteToken, false);
testSuiteToken = getNextTokenFromTestSuite(testSuiteReader);
if (!verifyInProgress) {
ignoreCobolStatementAndFieldNameKeyAction = true;
handleEndOfMockStatement(testSuiteReader, testSuiteToken, false);
}
if(testSuiteToken.equals("END-MOCK") ){
testSuiteToken = getNextTokenFromTestSuite(testSuiteReader);
}
continue;
}

Expand Down

0 comments on commit 9ab9956

Please sign in to comment.