-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cics REQUEST improvements #2602
base: development
Are you sure you want to change the base?
Cics REQUEST improvements #2602
Conversation
@KutluOzel-b Could you review this? |
server/engine/src/main/antlr4/org/eclipse/lsp/cobol/implicitDialects/cics/CICSParser.g4
Show resolved
Hide resolved
server/engine/src/main/antlr4/org/eclipse/lsp/cobol/implicitDialects/cics/CICSParser.g4
Show resolved
Hide resolved
server/engine/src/main/antlr4/org/eclipse/lsp/cobol/implicitDialects/cics/CICSParser.g4
Show resolved
Hide resolved
checkDuplicates(ctx); | ||
} | ||
|
||
private void checkEncryptptkt(CICSParser.Cics_request_encryptptktContext ctx) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add check for ENCRYPTPTKT mandatory
} | ||
|
||
private void checkPassticket(CICSParser.Cics_request_passticketContext ctx) { | ||
checkHasMandatoryOptions(ctx.ESMAPPNAME(), ctx, "ESMAPPNAME"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add check for PASSTICKET mandatory
CICSTestUtils.noErrorTest(PASSTICKET_VALID_2); | ||
} | ||
|
||
// Invalid Tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add tests for PASSTICKET and ENCRYPTPTKT is being mandatory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't work that way. There is no guarantee that you'd be in the rule the user intended.
server/engine/src/test/java/org/eclipse/lsp/cobol/usecases/TestCicsRequestStatement.java
Outdated
Show resolved
Hide resolved
server/engine/src/test/java/org/eclipse/lsp/cobol/usecases/TestCicsRequestStatement.java
Show resolved
Hide resolved
…tCicsRequestStatement.java Co-authored-by: Kutlu <104970275+KutluOzel-b@users.noreply.github.com>
How Has This Been Tested?
Created and ran tests for both valid and invalid REQUEST commands.
Checklist: